[Liblas-commits] hg: update to catch up to Martin's new error
handling
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Jun 14 11:40:11 EDT 2011
details: http://hg.liblas.orghg/rev/ba3b8f11ffd4
changeset: 2949:ba3b8f11ffd4
user: Howard Butler <hobu.inc at gmail.com>
date: Tue Jun 14 10:39:38 2011 -0500
description:
update to catch up to Martin's new error handling
diffstat:
src/detail/reader/zipreader.cpp | 4 ++--
src/detail/writer/zipwriter.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r a8296ae20249 -r ba3b8f11ffd4 src/detail/reader/zipreader.cpp
--- a/src/detail/reader/zipreader.cpp Wed May 18 14:19:37 2011 -0500
+++ b/src/detail/reader/zipreader.cpp Tue Jun 14 10:39:38 2011 -0500
@@ -167,7 +167,7 @@
throw liblas_error("Failed to open laszip decompression engine (1)");
}
- unsigned int stat = 1;
+ bool stat(false);
try
{
m_ifs.seekg(m_header->GetDataOffset(), std::ios::beg);
@@ -177,7 +177,7 @@
{
throw liblas_error("Failed to open laszip decompression engine (2)");
}
- if (stat != 0)
+ if (!stat)
{
throw liblas_error("Failed to open laszip decompression engine (3)");
}
diff -r a8296ae20249 -r ba3b8f11ffd4 src/detail/writer/zipwriter.cpp
--- a/src/detail/writer/zipwriter.cpp Wed May 18 14:19:37 2011 -0500
+++ b/src/detail/writer/zipwriter.cpp Tue Jun 14 10:39:38 2011 -0500
@@ -155,7 +155,7 @@
throw liblas_error("Error opening compression engine (1)");
}
- unsigned int stat = 1;
+ bool stat(false);
try
{
stat = m_zipper->open(m_ofs, m_zip);
@@ -164,7 +164,7 @@
{
throw liblas_error("Error opening compression engine (3)");
}
- if (stat != 0)
+ if (!stat)
{
throw liblas_error("Error opening compression engine (2)");
}
More information about the Liblas-commits
mailing list