fix -Wcatch-value=, fix -Wpedantic

This commit is contained in:
wmayer
2019-09-18 14:36:23 +02:00
parent b1dd1e61a7
commit 5746c37b7e
5 changed files with 16 additions and 16 deletions

View File

@@ -1008,7 +1008,7 @@ void GestureNavigationStyle::onRollGesture(int direction)
code << "Gui.runCommand(\"" << cmd << "\")";
try {
Base::Interpreter().runString(code.str().c_str());
} catch (Base::PyException exc) {
} catch (Base::PyException& exc) {
exc.ReportException();
} catch (...) {
Base::Console().Error("GestureNavigationStyle::onRollGesture: unknown C++ exception when invoking command %s\n", cmd.c_str());