[Liblas-commits] r988 - in trunk: include/liblas src
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Feb 3 10:21:36 EST 2009
Author: hobu
Date: Tue Feb 3 10:21:36 2009
New Revision: 988
URL: http://liblas.org/changeset/988
Log:
fix up creation of a local m_pimpl that was masking the LASReader's
Modified:
trunk/include/liblas/lasreader.hpp
trunk/src/lasreader.cpp
Modified: trunk/include/liblas/lasreader.hpp
==============================================================================
--- trunk/include/liblas/lasreader.hpp (original)
+++ trunk/include/liblas/lasreader.hpp Tue Feb 3 10:21:36 2009
@@ -93,7 +93,7 @@
/// \todo TODO: Should we handle m_record.point_source_id ?
void MakePoint(double const& time);
- const std::auto_ptr<detail::Reader> m_pimpl;
+ std::auto_ptr<detail::Reader> m_pimpl;
LASHeader m_header;
LASPoint m_point;
detail::PointRecord m_record;
Modified: trunk/src/lasreader.cpp
==============================================================================
--- trunk/src/lasreader.cpp (original)
+++ trunk/src/lasreader.cpp Tue Feb 3 10:21:36 2009
@@ -142,10 +142,9 @@
void LASReader::MakePIMPL(std::istream& ifs)
{
- detail::Reader* ptr = detail::ReaderFactory::Create(ifs);
- std::auto_ptr<detail::Reader>m_pimpl (ptr);
-
+ m_pimpl = std::auto_ptr<detail::Reader>( detail::ReaderFactory::Create(ifs) );
}
+
void LASReader::Init()
{
bool ret = m_pimpl->ReadHeader(m_header);
More information about the Liblas-commits
mailing list