1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-17 08:41:38 +00:00

gui: Fix warning: catching polymorphic type by value

gui/application.cc: In member function ‘virtual bool nextpnr_ice40::Application::notify(QObject*, QEvent*)’:
gui/application.cc:56:32: warning: catching polymorphic type ‘class nextpnr_ice40::assertion_failure’ by value [-Wcatch-value=]
This commit is contained in:
Michael Buesch
2019-05-20 22:17:45 +02:00
parent c9ba65e7b2
commit 3d4f1dc60b

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