Fix Warnings in MouseEventFilter.cpp

/retroshare-gui/src/util/MouseEventFilter.cpp:56: warning: catching
polymorphic type 'class std::bad_cast' by value [-Wcatch-value=]
/retroshare-gui/src/util/MouseEventFilter.cpp:77: warning: catching
polymorphic type 'class std::bad_cast' by value [-Wcatch-value=]
This commit is contained in:
Phenom 2018-10-08 19:27:48 +02:00
parent da6778934d
commit a30e2c3400

View File

@ -53,7 +53,7 @@ bool MousePressEventFilter::eventFilter(QObject * watched, QEvent * event) {
filter(event);
return false;
}
} catch (std::bad_cast) {
} catch (const std::bad_cast&) {
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
}
}
@ -74,7 +74,7 @@ bool MouseReleaseEventFilter::eventFilter(QObject * watched, QEvent * event) {
filter(event);
return false;
}
} catch (std::bad_cast) {
} catch (const std::bad_cast&) {
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
}
}