[Liblas-commits] hg: apply patch to fix #205 and reduce point
copying
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Jan 17 17:08:14 EST 2011
details: http://hg.liblas.orghg/rev/44a3ac08553c
changeset: 2772:44a3ac08553c
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Jan 17 16:07:53 2011 -0600
description:
apply patch to fix #205 and reduce point copying
diffstat:
src/index.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 111191d7ad62 -r 44a3ac08553c src/index.cpp
--- a/src/index.cpp Mon Jan 17 12:14:11 2011 -0600
+++ b/src/index.cpp Mon Jan 17 16:07:53 2011 -0600
@@ -927,7 +927,7 @@
} // if
if (PtRead)
{
- Point TestPt = m_reader->GetPoint();
+ Point const& TestPt = m_reader->GetPoint();
PtX = TestPt.GetX();
PtY = TestPt.GetY();
PtZ = TestPt.GetZ();
@@ -970,7 +970,7 @@
} // if
if (PtRead)
{
- Point TestPt = m_reader->GetPoint();
+ Point const& TestPt = m_reader->GetPoint();
PtY = TestPt.GetY();
PtZ = TestPt.GetZ();
if (PtY >= ParamSrc.GetMinFilterY() && PtY <= ParamSrc.GetMaxFilterY())
@@ -1014,7 +1014,7 @@
} // if
if (PtRead)
{
- Point TestPt = m_reader->GetPoint();
+ Point const& TestPt = m_reader->GetPoint();
PtZ = TestPt.GetZ();
if (PtZ >= ParamSrc.GetMinFilterZ() && PtZ <= ParamSrc.GetMaxFilterZ())
ZGood = true;
@@ -1565,7 +1565,7 @@
m_reader->Seek(0);
while (m_reader->ReadNextPoint())
{
- Point CurPt = m_reader->GetPoint();
+ Point const& CurPt = m_reader->GetPoint();
if (! writer.WritePoint(CurPt))
return (OutputFileError("Index::SaveIndexInLASFile"));
} // while
@@ -1584,7 +1584,7 @@
m_reader->Seek(0);
while (m_reader->ReadNextPoint())
{
- Point CurPt = m_reader->GetPoint();
+ Point const& CurPt = m_reader->GetPoint();
if (! writer.WritePoint(CurPt))
return (OutputFileError("Index::SaveIndexInLASFile"));
} // while
More information about the Liblas-commits
mailing list