mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Eliminated many warnings
This commit is contained in:
@@ -5200,8 +5200,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// NOTE: 3rd case is needed because a NULL_KEY comes through as
|
||||
// type 'obj' and wrongly returns ""
|
||||
else if (!(src.Data[index] is LSL_String ||
|
||||
src.Data[index] is LSL_Key ||
|
||||
src.Data[index] == "00000000-0000-0000-0000-000000000000"))
|
||||
src.Data[index] is LSL_Key ||
|
||||
src.Data[index].ToString() == "00000000-0000-0000-0000-000000000000"))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -1377,27 +1377,6 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// BELOW IS WORK IN PROGRESS... IT WILL CHANGE, SO DON'T USE YET! :)
|
||||
//
|
||||
|
||||
public struct StringTest
|
||||
{
|
||||
// Our own little string
|
||||
internal string actualString;
|
||||
public static implicit operator bool(StringTest mString)
|
||||
{
|
||||
if (mString.actualString.Length == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return actualString;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct key
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user