From daf7b8ec76bb333d4808e8cd4392a002042ac2d0 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 4 Jul 2007 05:25:40 +0000 Subject: * Cleaning - attempting to get compiler warnings back down to zero. --- .../Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs | 4 ++-- OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/scripting/Engines') diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs index 56f5c0b..7928088 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpScriptEngine.cs @@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting return ".cs"; } - private Dictionary LoadDotNetScript(ICodeCompiler compiler, string filename) + private Dictionary LoadDotNetScript(CodeDomProvider compiler, string filename) { CompilerParameters compilerParams = new CompilerParameters(); CompilerResults compilerResults; @@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting public Dictionary compile(string filename) { CSharpCodeProvider csharpProvider = new CSharpCodeProvider(); - return LoadDotNetScript(csharpProvider.CreateCompiler(), filename); + return LoadDotNetScript(csharpProvider, filename); } } } diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs index 2cea6e0..d9d6f7e 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/JScriptEngine.cs @@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting return ".js"; } - private Dictionary LoadDotNetScript(ICodeCompiler compiler, string filename) + private Dictionary LoadDotNetScript(CodeDomProvider compiler, string filename) { CompilerParameters compilerParams = new CompilerParameters(); CompilerResults compilerResults; @@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting public Dictionary compile(string filename) { JScriptCodeProvider jscriptProvider = new JScriptCodeProvider(); - return LoadDotNetScript(jscriptProvider.CreateCompiler(), filename); + return LoadDotNetScript(jscriptProvider, filename); } } } -- cgit v1.1