[Liblas-commits] hg-main-tree: normalize includes

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Jun 14 11:40:03 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/dfe01fe9ae61
changeset: 780:dfe01fe9ae61
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Jun 14 10:07:52 2011 -0500
description:
normalize includes
Subject: hg-main-tree: eof endline

details:   http://hg.libpc.orghg-main-tree/rev/2e22dc768edb
changeset: 781:2e22dc768edb
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Jun 14 10:08:01 2011 -0500
description:
eof endline
Subject: hg-main-tree: update to catch up to Martin's new error handling

details:   http://hg.libpc.orghg-main-tree/rev/7a0582360b42
changeset: 782:7a0582360b42
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Jun 14 10:39:52 2011 -0500
description:
update to catch up to Martin's new error handling

diffstat:

 include/pdal/filters/ReprojectionFilter.hpp |  2 +-
 src/Signaller.cpp                           |  2 +-
 src/drivers/las/Iterator.cpp                |  4 ++--
 src/drivers/las/Writer.cpp                  |  4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diffs (67 lines):

diff -r 9afa9e95aeea -r 7a0582360b42 include/pdal/filters/ReprojectionFilter.hpp
--- a/include/pdal/filters/ReprojectionFilter.hpp	Thu Jun 09 15:04:05 2011 -0500
+++ b/include/pdal/filters/ReprojectionFilter.hpp	Tue Jun 14 10:39:52 2011 -0500
@@ -36,10 +36,10 @@
 #define INCLUDED_FILTERS_REPROJECTIONFILTER_HPP
 
 #include <pdal/pdal.hpp>
+#include <pdal/Filter.hpp>
 
 #include <boost/shared_ptr.hpp>
 
-#include <pdal/Filter.hpp>
 
 namespace pdal
 {
diff -r 9afa9e95aeea -r 7a0582360b42 src/Signaller.cpp
--- a/src/Signaller.cpp	Thu Jun 09 15:04:05 2011 -0500
+++ b/src/Signaller.cpp	Tue Jun 14 10:39:52 2011 -0500
@@ -34,4 +34,4 @@
 
 #include <pdal/Signaller.hpp>
 
-// (no implementation code)
\ No newline at end of file
+// (no implementation code)
diff -r 9afa9e95aeea -r 7a0582360b42 src/drivers/las/Iterator.cpp
--- a/src/drivers/las/Iterator.cpp	Thu Jun 09 15:04:05 2011 -0500
+++ b/src/drivers/las/Iterator.cpp	Tue Jun 14 10:39:52 2011 -0500
@@ -140,7 +140,7 @@
             throw pdal_error("Failed to open laszip decompression engine (1)"); 
         }
 
-        unsigned int stat = 1;
+        bool stat(false);
         try
         {
             m_istream->seekg(m_reader.getPointDataOffset(), std::ios::beg);
@@ -150,7 +150,7 @@
         {
             throw pdal_error("Failed to open laszip decompression engine (2)"); 
         }
-        if (stat != 0)
+        if (!stat)
         {
             throw pdal_error("Failed to open laszip decompression engine (3)"); 
         }
diff -r 9afa9e95aeea -r 7a0582360b42 src/drivers/las/Writer.cpp
--- a/src/drivers/las/Writer.cpp	Thu Jun 09 15:04:05 2011 -0500
+++ b/src/drivers/las/Writer.cpp	Tue Jun 14 10:39:52 2011 -0500
@@ -230,7 +230,7 @@
             PointFormat format = m_lasHeader.getPointFormat();
             boost::scoped_ptr<ZipPoint> z(new ZipPoint(format, m_lasHeader.getVLRs().getAll()));
             m_zipPoint.swap(z);
-            unsigned int stat = 1;
+            bool stat(false);
             try
             {
                 stat = m_zipper->open(m_ostream, m_zip.get());
@@ -239,7 +239,7 @@
             {
                 throw pdal_error("Error opening compression engine (3)");
             }
-            if (stat != 0)
+            if (!stat)
             {
                 throw pdal_error("Error opening compression engine (2)");
             }


More information about the Liblas-commits mailing list