1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-16 00:21:46 +00:00

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

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";