From 76c1fa19375b39630c180e0702c5be7b199e99d2 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 6 Jun 2018 21:11:27 +0200 Subject: Catch ConfigException by const reference --- src/crsm.cpp | 4 ++-- src/qt-config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/crsm.cpp b/src/crsm.cpp index 2c50fdc..1ba1d0e 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -3284,7 +3284,7 @@ CMD_FUNCTION_IMPL(getConfigValue) { respond(client, Config.getConfigValueLine(args)); } - catch(ConfigException) + catch(const ConfigException&) { respond(client, "Es existiert kein Wert mit dem Namen \"" + args + "\"\n"); } @@ -3298,7 +3298,7 @@ CMD_FUNCTION_IMPL(setConfigValue) applyConfig(); respond(client, "Wert wurde erfolgreich übernommen.\n"); } - catch(ConfigException e) + catch(const ConfigException& e) { respond(client, QString("Fehler beim Setzen: ") + e.what() + "\n"); } diff --git a/src/qt-config b/src/qt-config index 9e411a0..20b714e 160000 --- a/src/qt-config +++ b/src/qt-config @@ -1 +1 @@ -Subproject commit 9e411a03acc60aaff7244f26cc32597fd6452df3 +Subproject commit 20b714ed29e5b0350c7fff6d59792c1f58cfb36d -- cgit v1.2.3-54-g00ecf