diff options
author | David Shah <dave@ds0.me> | 2019-05-22 13:25:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 13:25:10 +0100 |
commit | 95f3d4cc6ed3a4516893f1b0756a2104be5e995b (patch) | |
tree | 6a3bad7f2dc4c60fb3151c2e8c05ebaee9fd8c17 | |
parent | c9ba65e7b2364147f8b27fbff1bb85a961f665c4 (diff) | |
parent | 3d4f1dc60b954bd266853185b63a488b23287e97 (diff) | |
download | nextpnr-95f3d4cc6ed3a4516893f1b0756a2104be5e995b.tar.gz nextpnr-95f3d4cc6ed3a4516893f1b0756a2104be5e995b.tar.bz2 nextpnr-95f3d4cc6ed3a4516893f1b0756a2104be5e995b.zip |
Merge pull request #277 from mbuesch/assert_catch_warning
gui: Fix warning: catching polymorphic type by value
-rw-r--r-- | gui/application.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/application.cc b/gui/application.cc index 7751e6f1..8c3db77b 100644 --- a/gui/application.cc +++ b/gui/application.cc @@ -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"; |