Eliminated many warnings

This commit is contained in:
Oren Hurvitz
2014-04-22 20:04:12 +03:00
parent 617bc4710a
commit 998d7009a6
48 changed files with 101 additions and 77 deletions

View File

@@ -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 "";
}

View File

@@ -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
{