Merge pull request #277 from mbuesch/assert_catch_warning

gui: Fix warning: catching polymorphic type by value
This commit is contained in:
David Shah 2019-05-22 13:25:10 +01:00 committed by GitHub
commit 95f3d4cc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ bool Application::notify(QObject *receiver, QEvent *event)
bool retVal = true;
try {
retVal = QApplication::notify(receiver, event);
} catch (assertion_failure ex) {
} catch (const assertion_failure &ex) {
QString msg;
QTextStream out(&msg);
out << ex.filename.c_str() << " at " << ex.line << "\n";