Browse Source

Removed a needless renaming of parameters.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/308/head
Dimitar Dobrev 12 years ago
parent
commit
a7d0ef13f9
  1. 2
      src/Generator/Generators/CSharp/CSharpMarshal.cs
  2. 4
      tests/Basic/Basic.cpp
  3. 1
      tests/Basic/Basic.h

2
src/Generator/Generators/CSharp/CSharpMarshal.cs

@ -495,7 +495,7 @@ namespace CppSharp.Generators.CSharp @@ -495,7 +495,7 @@ namespace CppSharp.Generators.CSharp
Context.Return.Write("&_{0}", param.Name);
}
else
Context.Return.Write(Helpers.SafeIdentifier(Context.Parameter.Name));
Context.Return.Write(Context.Parameter.Name);
return true;
}

4
tests/Basic/Basic.cpp

@ -36,6 +36,10 @@ char Foo2::testCharMarshalling(char c) @@ -36,6 +36,10 @@ char Foo2::testCharMarshalling(char c)
return c;
}
void Foo2::testKeywordParam(void* where)
{
}
Bar::Bar()
{
}

1
tests/Basic/Basic.h

@ -51,6 +51,7 @@ public: @@ -51,6 +51,7 @@ public:
Foo2 operator<<(signed long l);
Bar valueTypeField;
char testCharMarshalling(char c);
void testKeywordParam(void* where);
};
DLL_API Bar::Item operator |(Bar::Item left, Bar::Item right);

Loading…
Cancel
Save