From cad6f9ae39975d665027d64b772ee0d3ed611bcb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Mar 2012 15:06:26 +0200 Subject: Make sure --sloc-limit works even without --show-sloc --- xsd/cxx/parser/generator.cxx | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'xsd/cxx/parser') diff --git a/xsd/cxx/parser/generator.cxx b/xsd/cxx/parser/generator.cxx index 8723940..3635730 100644 --- a/xsd/cxx/parser/generator.cxx +++ b/xsd/cxx/parser/generator.cxx @@ -1258,12 +1258,9 @@ namespace CXX hxx << "#endif // " << guard << endl; if (show_sloc) - { - wcerr << hxx_path << ": " - << hxx_sloc.buffer ().count () << endl; + wcerr << hxx_path << ": " << hxx_sloc.buffer ().count () << endl; - sloc += hxx_sloc.buffer ().count (); - } + sloc += hxx_sloc.buffer ().count (); } @@ -1321,12 +1318,9 @@ namespace CXX << endl; if (show_sloc) - { - wcerr << ixx_path << ": " - << ixx_sloc.buffer ().count () << endl; + wcerr << ixx_path << ": " << ixx_sloc.buffer ().count () << endl; - sloc += ixx_sloc.buffer ().count (); - } + sloc += ixx_sloc.buffer ().count (); } @@ -1393,12 +1387,9 @@ namespace CXX << endl; if (show_sloc) - { - wcerr << cxx_path << ": " - << cxx_sloc.buffer ().count () << endl; + wcerr << cxx_path << ": " << cxx_sloc.buffer ().count () << endl; - sloc += cxx_sloc.buffer ().count (); - } + sloc += cxx_sloc.buffer ().count (); } // HXX impl -- cgit v1.1