diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-09 15:06:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-09 15:06:26 +0200 |
commit | cad6f9ae39975d665027d64b772ee0d3ed611bcb (patch) | |
tree | 0e250588266a427eecc2dfb078f09feac8b7f1a2 /xsd/cxx/tree/generator.cxx | |
parent | 0897bd94a7d430a3d14a2de01a109191bb89c86e (diff) |
Make sure --sloc-limit works even without --show-sloc
Diffstat (limited to 'xsd/cxx/tree/generator.cxx')
-rw-r--r-- | xsd/cxx/tree/generator.cxx | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/xsd/cxx/tree/generator.cxx b/xsd/cxx/tree/generator.cxx index 19cdd0e..b408c09 100644 --- a/xsd/cxx/tree/generator.cxx +++ b/xsd/cxx/tree/generator.cxx @@ -1351,12 +1351,9 @@ namespace CXX fwd << "#endif // " << guard << endl; if (show_sloc) - { - wcerr << fwd_path << ": " - << fwd_sloc.buffer ().count () << endl; + wcerr << fwd_path << ": " << fwd_sloc.buffer ().count () << endl; - sloc += fwd_sloc.buffer ().count (); - } + sloc += fwd_sloc.buffer ().count (); } // HXX @@ -1504,12 +1501,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 (); } @@ -1580,12 +1574,9 @@ namespace CXX ixx << "#endif // " << guard.c_str () << 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 (); } @@ -1732,12 +1723,10 @@ namespace CXX << endl; if (show_sloc) - { - wcerr << cxx_paths[part] << ": " - << cxx_sloc.buffer ().count () << endl; + wcerr << cxx_paths[part] << ": " << cxx_sloc.buffer ().count () + << endl; - sloc += cxx_sloc.buffer ().count (); - } + sloc += cxx_sloc.buffer ().count (); } } |