Browse Source

Fixed generation of native object instantiation to use the original names.

pull/53/merge
triton 13 years ago
parent
commit
17a8a4cbdc
  1. 2
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

2
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -602,7 +602,7 @@ namespace CppSharp.Generators.CLI @@ -602,7 +602,7 @@ namespace CppSharp.Generators.CLI
if (!@class.IsAbstract)
{
var @params = GenerateFunctionParamsMarshal(method.Parameters, method);
Write("NativePtr = new ::{0}(", method.Namespace.QualifiedName);
Write("NativePtr = new ::{0}(", method.Namespace.QualifiedOriginalName);
GenerateFunctionParams(@params);
WriteLine(");");
}

Loading…
Cancel
Save