Browse Source

Simplify the code by using a single WriteLine call.

pull/1/head
triton 13 years ago
parent
commit
6be6bca2d7
  1. 3
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

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

@ -324,8 +324,7 @@ namespace Cxxi.Generators.CLI @@ -324,8 +324,7 @@ namespace Cxxi.Generators.CLI
if (!string.IsNullOrWhiteSpace(marshal.SupportBefore))
WriteLine(marshal.SupportBefore);
Write("auto {0} = ", argName);
WriteLine("{0};", marshal.Return);
WriteLine("auto {0} = {1};", argName, marshal.Return);
if (!string.IsNullOrWhiteSpace(marshal.SupportAfter))
WriteLine(marshal.SupportAfter);

Loading…
Cancel
Save