From 6be6bca2d7d5c5c014ead515ae60450fffe0b414 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 30 Jan 2013 16:34:42 +0000 Subject: [PATCH] Simplify the code by using a single WriteLine call. --- src/Generator/Generators/CLI/CLISourcesTemplate.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Generator/Generators/CLI/CLISourcesTemplate.cs b/src/Generator/Generators/CLI/CLISourcesTemplate.cs index 51d24980..6c80a372 100644 --- a/src/Generator/Generators/CLI/CLISourcesTemplate.cs +++ b/src/Generator/Generators/CLI/CLISourcesTemplate.cs @@ -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);