aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2018-04-04 21:53:26 +0300
committerOrgad Shaneh <[email protected]>2018-04-07 17:41:42 +0000
commit1c82a53e74a7a3be9c0d6447ed9026901a93afaf (patch)
treedbdaca1756736f041e53d1efbbc717a2e757dd07 /src/libs/modelinglib
parent2dcb558945b408cf94b9c345384b010ac3ecd7a3 (diff)
Modeling: Catch exceptions by reference
Detected by GCC8. Change-Id: I478e835a49beaa2cd6f07650b2e8c3726979018d Reviewed-by: Jochen Becher <[email protected]> Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/libs/modelinglib')
-rw-r--r--src/libs/modelinglib/qmt/config/configcontroller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/modelinglib/qmt/config/configcontroller.cpp b/src/libs/modelinglib/qmt/config/configcontroller.cpp
index c7b9a783557..78f567aa29f 100644
--- a/src/libs/modelinglib/qmt/config/configcontroller.cpp
+++ b/src/libs/modelinglib/qmt/config/configcontroller.cpp
@@ -100,10 +100,10 @@ void ConfigController::readStereotypeDefinitions(const QString &path)
source.setText(text);
try {
parser.parse(&source);
- } catch (StereotypeDefinitionParserError x) {
+ } catch (const StereotypeDefinitionParserError &x) {
// TODO add error handling
qDebug() << x.errorMessage() << "in line" << x.sourcePos().lineNumber();
- } catch (TextScannerError x) {
+ } catch (const TextScannerError &x) {
// TODO add error handling
qDebug() << x.errorMessage() << "in line" << x.sourcePos().lineNumber();
} catch (...) {