[Liblas-commits] libpc: lint; mild bug fix
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Mar 10 17:20:48 EST 2011
details: http://hg.liblas.orglibpc/rev/53bb2743ebaa
changeset: 198:53bb2743ebaa
user: Michael P. Gerlek <mpg at flaxen.com>
date: Thu Mar 10 14:20:43 2011 -0800
description:
lint; mild bug fix
diffstat:
doc/sprint/notes.txt | 2 ++
src/PointData.cpp | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 7356c2fcffbc -r 53bb2743ebaa doc/sprint/notes.txt
--- a/doc/sprint/notes.txt Thu Mar 10 11:00:10 2011 -0800
+++ b/doc/sprint/notes.txt Thu Mar 10 14:20:43 2011 -0800
@@ -64,3 +64,5 @@
* update Notes to match realities
* discuss funding opportunities
+
+* in-place writer ability, breaks model
diff -r 7356c2fcffbc -r 53bb2743ebaa src/PointData.cpp
--- a/src/PointData.cpp Thu Mar 10 11:00:10 2011 -0800
+++ b/src/PointData.cpp Thu Mar 10 14:20:43 2011 -0800
@@ -70,7 +70,7 @@
bool
PointData::isValid(std::size_t index) const
{
- return static_cast<bool>(m_isValid[index]);
+ return (m_isValid[index] != 0);
}
bool PointData::allValid() const
@@ -133,7 +133,7 @@
if (srcPointData.allValid())
{
- m_isValid.assign(1, m_isValid.size());
+ m_isValid.assign(m_isValid.size(), 1);
}
else
{
More information about the Liblas-commits
mailing list