[Liblas-commits] libpc: remove nonsense

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Mar 1 14:36:10 EST 2011


details:   http://hg.liblas.orglibpc/rev/4ad79c07c12b
changeset: 138:4ad79c07c12b
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Tue Mar 01 11:36:02 2011 -0800
description:
remove nonsense

diffstat:

 src/drivers/liblas/writer.cpp |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r caa53970a5cf -r 4ad79c07c12b src/drivers/liblas/writer.cpp
--- a/src/drivers/liblas/writer.cpp	Tue Mar 01 11:10:07 2011 -0800
+++ b/src/drivers/liblas/writer.cpp	Tue Mar 01 11:36:02 2011 -0800
@@ -71,7 +71,7 @@
 
 LiblasWriter::~LiblasWriter()
 {
-    //delete m_externalHeader;
+    delete m_externalHeader;
     return;
 }
 
@@ -222,9 +222,7 @@
     //const int indexWaveformYt = (hasWaveData ? schema.getDimensionIndex(Dimension::Field_WaveformYt) : 0);
     //const int indexWaveformZt = (hasWaveData ? schema.getDimensionIndex(Dimension::Field_WaveformZt) : 0);
 
-    liblas::HeaderPtr *headerptr = new liblas::HeaderPtr(m_externalHeader);
-    liblas::Point *ppt = new liblas::Point(*headerptr);
-    liblas::Point & pt = *ppt;
+    liblas::Point pt;
 
     boost::uint32_t numPoints = pointData.getNumPoints();
     for (boost::uint32_t i=0; i<numPoints; i++)


More information about the Liblas-commits mailing list