diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index 6406d45c9ba..41291457b1d 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -1071,7 +1071,7 @@ bool MainWindow::open(QString filename, QString loader_name) { if(!item_opt) return false; else item = *item_opt; } - catch(std::logic_error e) { + catch(std::logic_error& e) { std::cerr << e.what() << std::endl; return false; } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_2/Mesh_2_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_2/Mesh_2_plugin.cpp index d77d14eb97c..527ec779993 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_2/Mesh_2_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_2/Mesh_2_plugin.cpp @@ -284,7 +284,7 @@ private: Q_FOREACH(const std::vector& points, polylines_item->polylines) cdt.insert_constraint(points.begin(),points.end()); - }catch(std::runtime_error) + }catch(std::runtime_error&) { QApplication::restoreOverrideCursor(); throw;