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:
parent
c9ba65e7b2
commit
3d4f1dc60b
@ -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