[Liblas-commits] hg: throw when we read off the end of the stream,
as the current...
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jan 26 12:51:11 EST 2011
details: http://hg.liblas.orghg/rev/9ad42bb0f010
changeset: 2825:9ad42bb0f010
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jan 26 11:51:07 2011 -0600
description:
throw when we read off the end of the stream, as the current point doesn't pass the filter
diffstat:
src/detail/reader/reader.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r 769d90492cfe -r 9ad42bb0f010 src/detail/reader/reader.cpp
--- a/src/detail/reader/reader.cpp Wed Jan 26 11:46:21 2011 -0600
+++ b/src/detail/reader/reader.cpp Wed Jan 26 11:51:07 2011 -0600
@@ -193,8 +193,7 @@
} catch (std::runtime_error&)
{
// If the stream is no good anymore, we're done reading points
- bLastPoint = true;
- return;
+ throw std::out_of_range("ReadNextPoint: file has no more points to read, end of file reached");
}
while (!FilterPoint(*m_point))
@@ -208,8 +207,7 @@
} catch (std::runtime_error&)
{
// If the stream is no good anymore, we're done reading points
- bLastPoint = true;
- return;
+ throw std::out_of_range("ReadNextPoint: file has no more points to read, end of file reached");
}
if (m_current == m_size)
{
More information about the Liblas-commits
mailing list