[Liblas-commits] hg: don't use temp ostringstream so we don't have to worry about...

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Jan 20 23:46:19 EST 2011


details:   http://hg.liblas.orghg/rev/10b1d0a65e8a
changeset: 2804:10b1d0a65e8a
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Jan 20 22:46:11 2011 -0600
description:
don't use temp ostringstream so we don't have to worry about carrying locale

diffstat:

 src/header.cpp |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 3d25d8f60b35 -r 10b1d0a65e8a src/header.cpp
--- a/src/header.cpp	Thu Jan 20 22:34:52 2011 -0600
+++ b/src/header.cpp	Thu Jan 20 22:46:11 2011 -0600
@@ -808,15 +808,14 @@
     os << "  Point Data Format:           " << tree.get<boost::uint32_t>("dataformatid") << std::endl;
     os << "  Number of Point Records:     " << tree.get<boost::uint32_t>("count") << std::endl;
     os << "  Compressed:                  " << (tree.get<bool>("compressed")?"True":"False") << std::endl;
-    std::ostringstream returns_oss;
+    os << "  Number of Points by Return:  " ;
     BOOST_FOREACH(ptree::value_type &v,
           tree.get_child("returns"))
     {
-          returns_oss << v.second.get<boost::uint32_t>("count")<< " ";
+          os << v.second.get<boost::uint32_t>("count")<< " ";
 
-    }        
-
-    os << "  Number of Points by Return:  " << returns_oss.str() << std::endl;
+    }      
+    os << std::endl;
 
     os.setf(std::ios_base::fixed, std::ios_base::floatfield);
     double x_scale = tree.get<double>("scale.x");


More information about the Liblas-commits mailing list