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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crsm.cpp') 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"); } -- cgit v1.2.3-54-g00ecf