[Liblas-commits] r1198 - trunk/src/detail
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Apr 9 15:09:03 EDT 2009
Author: hobu
Date: Thu Apr 9 15:09:02 2009
New Revision: 1198
URL: http://liblas.org/changeset/1198
Log:
try again on r1197 because we throw different exceptions depending on whether or not -DDEBUG is defined... ugh
Modified:
trunk/src/detail/reader10.cpp
trunk/src/detail/reader11.cpp
trunk/src/detail/reader12.cpp
Modified: trunk/src/detail/reader10.cpp
==============================================================================
--- trunk/src/detail/reader10.cpp (original)
+++ trunk/src/detail/reader10.cpp Thu Apr 9 15:09:02 2009
@@ -221,6 +221,12 @@
// Ignore the out_of_range here for the case of a
// file with just a header and no pad
}
+ catch (std::runtime_error const& e)
+ {
+ // Ignore the runtime_error here for the case of a
+ // file with just a header and no pad
+ // This is what is thrown when we compile *without* debug
+ }
catch (std::domain_error const& e)
{
// TODO: We'll want to put this error on the validation errors stack
Modified: trunk/src/detail/reader11.cpp
==============================================================================
--- trunk/src/detail/reader11.cpp (original)
+++ trunk/src/detail/reader11.cpp Thu Apr 9 15:09:02 2009
@@ -226,7 +226,12 @@
// Ignore the out_of_range here for the case of a
// file with just a header and no pad
}
-
+ catch (std::runtime_error const& e)
+ {
+ // Ignore the runtime_error here for the case of a
+ // file with just a header and no pad
+ // This is what is thrown when we compile *without* debug
+ }
catch (std::domain_error const& e)
{
}
Modified: trunk/src/detail/reader12.cpp
==============================================================================
--- trunk/src/detail/reader12.cpp (original)
+++ trunk/src/detail/reader12.cpp Thu Apr 9 15:09:02 2009
@@ -231,7 +231,14 @@
{
// Ignore the out_of_range here for the case of a
// file with just a header and no pad
+ // This is what is thrown when we compile *with* debug
}
+ catch (std::runtime_error const& e)
+ {
+ // Ignore the runtime_error here for the case of a
+ // file with just a header and no pad
+ // This is what is thrown when we compile *without* debug
+ }
catch (std::domain_error const& e)
{
}
More information about the Liblas-commits
mailing list