[Liblas-commits] hg-main-tree: fix throw
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jun 24 19:48:06 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/e8f04ef56f8a
changeset: 811:e8f04ef56f8a
user: Michael P. Gerlek <mpg at flaxen.com>
date: Fri Jun 24 16:47:57 2011 -0700
description:
fix throw
diffstat:
src/Options.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 50c59fb4ca43 -r e8f04ef56f8a src/Options.cpp
--- a/src/Options.cpp Fri Jun 24 16:45:10 2011 -0700
+++ b/src/Options.cpp Fri Jun 24 16:47:57 2011 -0700
@@ -43,7 +43,6 @@
#include <sstream>
#include <iostream>
-
#include <pdal/exceptions.hpp>
@@ -72,15 +71,15 @@
if (v.first == "option")
{
// v.second is <option><name>..</name><value>..</value><desc>..</desc></option>
- const std::string aname = v.second.get_child("name").get_value<std::string>();
- if (name == aname)
+ const std::string s = v.second.get_child("name").get_value<std::string>();
+ if (name == s)
{
return v.second;
}
}
}
- throw;
+ throw pdal_error("requested option not found");
}
More information about the Liblas-commits
mailing list