diff options
Diffstat (limited to 'ccode')
-rw-r--r-- | ccode/valaccodewriter.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ccode/valaccodewriter.vala b/ccode/valaccodewriter.vala index 93f4a4261..7368852d1 100644 --- a/ccode/valaccodewriter.vala +++ b/ccode/valaccodewriter.vala @@ -225,10 +225,7 @@ public class Vala.CCodeWriter { // discard tabs at beginning of line var regex = new GLib.Regex ("^\t+"); - /* separate declaration due to missing memory management in foreach statements */ - var lines = text.split ("\n"); - - foreach (string line in lines) { + foreach (unowned string line in text.split ("\n")) { if (!first) { write_indent (); } else { |