Browse Source

Remove redundant spaces in the generated C++

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1648/head
Dimitar Dobrev 3 years ago
parent
commit
740f30e816
  1. 2
      src/Generator/Generators/C/CppTypePrinter.cs

2
src/Generator/Generators/C/CppTypePrinter.cs

@ -623,8 +623,6 @@ namespace CppSharp.Generators.C @@ -623,8 +623,6 @@ namespace CppSharp.Generators.C
string exceptionType = Print(functionType.ExceptionSpecType);
var @return = function.OriginalReturnType.Visit(this);
if (!string.IsNullOrEmpty(@return.Type))
@return.NamePrefix.Append(' ');
@return.Name = @class + name;
@return.NameSuffix.Append('(').Append(@params)
.Append(function.IsVariadic ? ", ..." : string.Empty).Append(')')

Loading…
Cancel
Save