Fix some compiler warnings. Minor formatting cleanup.

0.6.3-post-fixes
Jeff Ames 2009-02-13 02:52:08 +00:00
parent 95d53d48d4
commit 163c1026d1
6 changed files with 9 additions and 15 deletions

View File

@ -293,7 +293,7 @@ namespace OpenSim.Framework.Console
if (s == String.Empty)
{
CommandInfo ci = (CommandInfo)current[String.Empty];
if (ci.fn.Count != null)
if (ci.fn.Count != 0)
addcr = true;
}
else
@ -355,7 +355,7 @@ namespace OpenSim.Framework.Console
if (current.ContainsKey(String.Empty))
{
CommandInfo ci = (CommandInfo)current[String.Empty];
if (ci.fn.Count == null)
if (ci.fn.Count == 0)
return new string[0];
foreach (CommandDelegate fn in ci.fn)
fn(ci.module, result);

View File

@ -39,7 +39,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
/// </summary>
public class MaintenanceThread
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
//public ScriptEngine m_ScriptEngine;

View File

@ -505,7 +505,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
return 0;
}
#endregion
#region Internal functions to keep track of script
@ -591,7 +590,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
StartScript(localID, itemID, script, id.StartParam, false);
}
#region Script serialization/deserialization
public void GetSerializedScript(uint localID, UUID itemID)
@ -623,9 +621,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
public int GetStartParameter(UUID itemID)
{
uint localID = GetLocalID(itemID);
InstanceData id = GetScript(localID, itemID);
if (id == null)

View File

@ -361,12 +361,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Integer llAbs(int i)
{
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
m_host.AddScriptLPS(1);
if(i == Int32.MinValue)
return i;
if (i == Int32.MinValue)
return i;
else
return (int)Math.Abs(i);
return (int)Math.Abs(i);
}
public LSL_Float llFabs(double f)

View File

@ -47,7 +47,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
public static Random random;
public TestClient testclient;
TestCommunicationsManager cm;
//TestCommunicationsManager cm;
[TestFixtureSetUp]
public void Init()
@ -65,4 +65,4 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
xengine.PostInitialise();
}
}
}
}

View File

@ -131,6 +131,5 @@ namespace OpenSim.ScriptEngine.Shared
}
}
}
}
}
}