* minor: warnings removal
parent
37da083de5
commit
451bd5a0ca
|
@ -40,10 +40,10 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||||
internal class ComponentLoader
|
internal class ComponentLoader
|
||||||
{
|
{
|
||||||
internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
private ScriptEnginePlugin scriptEnginePlugin;
|
//private ScriptEnginePlugin scriptEnginePlugin;
|
||||||
public ComponentLoader(ScriptEnginePlugin sep)
|
public ComponentLoader(ScriptEnginePlugin sep)
|
||||||
{
|
{
|
||||||
scriptEnginePlugin = sep;
|
//scriptEnginePlugin = sep;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -171,7 +171,7 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||||
{
|
{
|
||||||
p.Close();
|
p.Close();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
// TODO: Print error to console
|
// TODO: Print error to console
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,20 +46,20 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||||
return;
|
return;
|
||||||
// New region is being created
|
// New region is being created
|
||||||
// Create a new script engine
|
// Create a new script engine
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
lock (ComponentRegistry.scriptEngines)
|
// lock (ComponentRegistry.scriptEngines)
|
||||||
{
|
// {
|
||||||
scriptEngine =
|
// scriptEngine =
|
||||||
Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
|
// Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
|
||||||
RegionScriptEngineBase;
|
// RegionScriptEngineBase;
|
||||||
}
|
// }
|
||||||
scriptEngine.Initialize(scene, source);
|
// scriptEngine.Initialize(scene, source);
|
||||||
}
|
// }
|
||||||
catch (Exception ex)
|
// catch (Exception ex)
|
||||||
{
|
// {
|
||||||
scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
|
// scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostInitialise()
|
public void PostInitialise()
|
||||||
|
|
|
@ -145,7 +145,7 @@ namespace OpenSim.Data.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public void T300_NoTerrain()
|
public void T300_NoTerrain()
|
||||||
{
|
{
|
||||||
double[,] t1 = db.LoadTerrain(region1);
|
db.LoadTerrain(region1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -1373,7 +1373,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
value = int.Parse(v, System.Globalization.NumberStyles.Integer);
|
value = int.Parse(v, System.Globalization.NumberStyles.Integer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (OverflowException oe)
|
catch (OverflowException)
|
||||||
{
|
{
|
||||||
value = -1;
|
value = -1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1455,7 +1455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||||
value = int.Parse(v,
|
value = int.Parse(v,
|
||||||
System.Globalization.NumberStyles.Integer);
|
System.Globalization.NumberStyles.Integer);
|
||||||
}
|
}
|
||||||
catch (OverflowException oe)
|
catch (OverflowException)
|
||||||
{
|
{
|
||||||
value = -1;
|
value = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue