[Liblas-commits] hg-main-tree: vs2010 lint
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jun 22 14:28:07 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/c08344a3122e
changeset: 802:c08344a3122e
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Jun 22 11:28:02 2011 -0700
description:
vs2010 lint
diffstat:
src/XMLSchema.cpp | 2 +-
src/drivers/terrasolid/Reader.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 2819deecf9c9 -r c08344a3122e src/XMLSchema.cpp
--- a/src/XMLSchema.cpp Wed Jun 22 10:34:57 2011 -0700
+++ b/src/XMLSchema.cpp Wed Jun 22 11:28:02 2011 -0700
@@ -617,7 +617,7 @@
{
if (!compare_no_case(name.c_str(), "X"))
return Dimension::Field_X;
-
+
if (!compare_no_case(name.c_str(), "Y"))
return Dimension::Field_Y;
diff -r 2819deecf9c9 -r c08344a3122e src/drivers/terrasolid/Reader.cpp
--- a/src/drivers/terrasolid/Reader.cpp Wed Jun 22 10:34:57 2011 -0700
+++ b/src/drivers/terrasolid/Reader.cpp Wed Jun 22 11:28:02 2011 -0700
@@ -110,8 +110,8 @@
setNumPoints(m_header->PntCnt);
- m_haveColor = static_cast<bool>(m_header->Color);
- m_haveTime = static_cast<bool>(m_header->Time);
+ m_haveColor = (m_header->Color==1);
+ m_haveTime = (m_header->Time==1);
m_format = static_cast<TERRASOLID_Format_Type>(m_header->HdrVersion);
More information about the Liblas-commits
mailing list