Browse Source

Fixed the generation of abstract impl calls in property setters.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
incorrect_trunit_test
Dimitar Dobrev 11 years ago
parent
commit
42828f35fd
  1. 9
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs
  2. 2
      tests/CSharpTemp/CSharpTemp.h

9
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -344,7 +344,7 @@ namespace CppSharp.Generators.CSharp
} }
else else
{ {
WriteLine("/// <summary>{0}</summary>", comment.BriefText); WriteLine("/// <summary>{0}</summary>", comment.BriefText);
} }
PopBlock(); PopBlock();
} }
@ -807,7 +807,9 @@ namespace CppSharp.Generators.CSharp
if (function.SynthKind == FunctionSynthKind.AbstractImplCall) if (function.SynthKind == FunctionSynthKind.AbstractImplCall)
{ {
GenerateAbstractImplCall(function, @class); string delegateId;
Write(GetAbstractCallDelegate(function, @class, out delegateId));
GenerateFunctionCall(delegateId, new List<Parameter> { param }, function);
} }
else else
{ {
@ -820,8 +822,7 @@ namespace CppSharp.Generators.CSharp
} }
else else
{ {
var parameters = new List<Parameter> { param }; GenerateInternalFunctionCall(function, new List<Parameter> { param });
GenerateInternalFunctionCall(function, parameters);
} }
} }
else else

2
tests/CSharpTemp/CSharpTemp.h

@ -96,7 +96,7 @@ class DLL_API AbstractProprietor
{ {
public: public:
virtual int getValue(); virtual int getValue();
virtual void setValue(int value) = 0; virtual void setValue(int newValue) = 0;
virtual long prop() = 0; virtual long prop() = 0;
virtual void setProp(long prop); virtual void setProp(long prop);

Loading…
Cancel
Save