[Liblas-commits] hg: remove extra copy invocations of shared_ptr

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Jul 27 11:52:33 EDT 2010


changeset 96a52b110942 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=96a52b110942
summary: remove extra copy invocations of shared_ptr

diffstat:

 src/detail/reader/point.cpp  |  2 +-
 src/detail/reader/reader.cpp |  2 +-
 src/lasreader.cpp            |  6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r e503e02aacc3 -r 96a52b110942 src/detail/reader/point.cpp
--- a/src/detail/reader/point.cpp	Tue Jul 27 10:46:54 2010 -0500
+++ b/src/detail/reader/point.cpp	Tue Jul 27 10:52:27 2010 -0500
@@ -55,7 +55,7 @@
 }
 
 Point::Point(std::istream& ifs, const liblas::Header& header) :
-    m_ifs(ifs), m_header(header), m_point(PointPtr(new liblas::Point())), m_format(header.GetSchema())
+    m_ifs(ifs), m_header(header), m_point(new liblas::Point()), m_format(header.GetSchema())
 {
     setup();
 }
diff -r e503e02aacc3 -r 96a52b110942 src/detail/reader/reader.cpp
--- a/src/detail/reader/reader.cpp	Tue Jul 27 10:46:54 2010 -0500
+++ b/src/detail/reader/reader.cpp	Tue Jul 27 10:52:27 2010 -0500
@@ -60,7 +60,7 @@
 ReaderImpl::ReaderImpl(std::istream& ifs) :
     m_ifs(ifs), m_size(0), m_current(0),
     m_point_reader(PointReaderPtr()),     
-    m_header_reader(HeaderReaderPtr(new reader::Header(m_ifs)))
+    m_header_reader(new reader::Header(m_ifs))
 
 {
 }
diff -r e503e02aacc3 -r 96a52b110942 src/lasreader.cpp
--- a/src/lasreader.cpp	Tue Jul 27 10:46:54 2010 -0500
+++ b/src/lasreader.cpp	Tue Jul 27 10:52:27 2010 -0500
@@ -60,7 +60,7 @@
     m_pimpl(new detail::CachedReaderImpl(ifs,3)),
     m_header(HeaderPtr()),
     m_point(0),
-    m_empty_point(PointPtr(new Point())),
+    m_empty_point(new Point()),
     bCustomHeader(false),
     m_filters(0),
     m_transforms(0),
@@ -73,7 +73,7 @@
     m_pimpl(reader),
     m_header(HeaderPtr()),
     m_point(0),
-    m_empty_point(PointPtr(new Point())),
+    m_empty_point(new Point()),
     bCustomHeader(false),
     m_filters(0),
     m_transforms(0),
@@ -86,7 +86,7 @@
     m_pimpl(new detail::CachedReaderImpl(ifs,3)),
     m_header(HeaderPtr( )),    
     m_point(0),
-    m_empty_point(PointPtr(new Point())),
+    m_empty_point(new Point()),
     bCustomHeader(true),
     m_filters(0),
     m_transforms(0),


More information about the Liblas-commits mailing list