diff options
author | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
commit | 087b9bb7c3462894acd5d527f32c4b43bedf6fdb (patch) | |
tree | 236093cb5760e0577961594835c40b194be1e446 /src/export.cc | |
parent | 750e1f9f649e0908bf1d89c9e31d61ef0f56fe7f (diff) |
Catch exceptions as const references. Related to #204
Diffstat (limited to 'src/export.cc')
-rw-r--r-- | src/export.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/export.cc b/src/export.cc index 40ce6cb..80670ea 100644 --- a/src/export.cc +++ b/src/export.cc @@ -111,7 +111,7 @@ void export_stl(CGAL_Nef_polyhedron *root_N, std::ostream &output) setlocale(LC_NUMERIC, ""); // Set default locale } - catch (CGAL::Assertion_exception e) { + catch (const CGAL::Assertion_exception &e) { PRINTB("CGAL error in CGAL_Nef_polyhedron3::convert_to_Polyhedron(): %s", e.what()); } CGAL::set_error_behaviour(old_behaviour); @@ -125,7 +125,7 @@ void export_off(CGAL_Nef_polyhedron *root_N, std::ostream &output) root_N->p3->convert_to_Polyhedron(P); output << P; } - catch (CGAL::Assertion_exception e) { + catch (const CGAL::Assertion_exception &e) { PRINTB("CGAL error in CGAL_Nef_polyhedron3::convert_to_Polyhedron(): %s", e.what()); } CGAL::set_error_behaviour(old_behaviour); |