[Liblas-commits] hg: initialize bNeedHeaderCheck in ZipReaderImpl

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 12 15:32:31 EST 2011


details:   http://hg.liblas.orghg/rev/c69c66976907
changeset: 2740:c69c66976907
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Jan 12 14:32:23 2011 -0600
description:
initialize bNeedHeaderCheck in ZipReaderImpl

diffstat:

 include/liblas/detail/reader/zipreader.hpp |   6 +++---
 src/detail/reader/zipreader.cpp            |  10 ++++++----
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 6b35330c4036 -r c69c66976907 include/liblas/detail/reader/zipreader.hpp
--- a/include/liblas/detail/reader/zipreader.hpp	Wed Jan 12 14:29:50 2011 -0600
+++ b/include/liblas/detail/reader/zipreader.hpp	Wed Jan 12 14:32:23 2011 -0600
@@ -105,15 +105,15 @@
     std::vector<liblas::FilterPtr> m_filters;
     std::vector<liblas::TransformPtr> m_transforms;
 
-    bool bNeedHeaderCheck;
-    
+
 private:
     void ReadIdiom(bool recordPoint);
     void ResetUnzipper();
 
     LASunzipper* m_unzipper;
     ZipPoint* m_zipPoint;
-
+    bool bNeedHeaderCheck;
+    
     // Blocked copying operations, declared but not defined.
     ZipReaderImpl(ZipReaderImpl const& other);
     ZipReaderImpl& operator=(ZipReaderImpl const& rhs);
diff -r 6b35330c4036 -r c69c66976907 src/detail/reader/zipreader.cpp
--- a/src/detail/reader/zipreader.cpp	Wed Jan 12 14:29:50 2011 -0600
+++ b/src/detail/reader/zipreader.cpp	Wed Jan 12 14:32:23 2011 -0600
@@ -72,9 +72,11 @@
     , m_header(HeaderPtr())
     , m_point(PointPtr(new liblas::Point()))
     , m_filters(0)
-    , m_transforms(0),
-    m_unzipper(NULL),
-    m_zipPoint(NULL)
+    , m_transforms(0)
+    , m_unzipper(0)
+    , m_zipPoint(0)
+    , bNeedHeaderCheck(false)
+    
 {
     return;
 }
@@ -85,7 +87,7 @@
     {
         m_unzipper->close();
         delete m_unzipper;
-        m_unzipper = NULL;
+        m_unzipper = 0;
     }
 
     delete m_zipPoint;


More information about the Liblas-commits mailing list