Merge pull request #277 from mbuesch/assert_catch_warning
gui: Fix warning: catching polymorphic type by value
This commit is contained in:
commit
95f3d4cc6e
@ -53,7 +53,7 @@ bool Application::notify(QObject *receiver, QEvent *event)
|
|||||||
bool retVal = true;
|
bool retVal = true;
|
||||||
try {
|
try {
|
||||||
retVal = QApplication::notify(receiver, event);
|
retVal = QApplication::notify(receiver, event);
|
||||||
} catch (assertion_failure ex) {
|
} catch (const assertion_failure &ex) {
|
||||||
QString msg;
|
QString msg;
|
||||||
QTextStream out(&msg);
|
QTextStream out(&msg);
|
||||||
out << ex.filename.c_str() << " at " << ex.line << "\n";
|
out << ex.filename.c_str() << " at " << ex.line << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user