mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
da6778934d
commit
a30e2c3400
@ -53,7 +53,7 @@ bool MousePressEventFilter::eventFilter(QObject * watched, QEvent * event) {
|
|||||||
filter(event);
|
filter(event);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (std::bad_cast) {
|
} catch (const std::bad_cast&) {
|
||||||
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
|
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ bool MouseReleaseEventFilter::eventFilter(QObject * watched, QEvent * event) {
|
|||||||
filter(event);
|
filter(event);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (std::bad_cast) {
|
} catch (const std::bad_cast&) {
|
||||||
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
|
//LOG_FATAL("exception when casting a QEvent to a QMouseEvent");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user