From 3339789afd583249fbab09435c81398669b4343b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 18 Apr 2016 09:38:34 +0100 Subject: cppcheck: catchExceptionByValue Change-Id: Id8e2fc67a1de4f608188d070f0f536576ad0e69a --- l10ntools/source/gLang.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'l10ntools') diff --git a/l10ntools/source/gLang.cxx b/l10ntools/source/gLang.cxx index bc0776b4e73f..83177867121d 100644 --- a/l10ntools/source/gLang.cxx +++ b/l10ntools/source/gLang.cxx @@ -397,7 +397,7 @@ int main(int argc, char *argv[]) handler::showUsage(myErr); exit(-1); } - catch(string sErr) { + catch(const string& sErr) { handler::showUsage(sErr); exit(-1); } @@ -411,7 +411,7 @@ int main(int argc, char *argv[]) handler::showRunTimeError(myErr); exit(-1); } - catch(string sErr) { + catch(const string& sErr) { handler::showRunTimeError(sErr); exit(-1); } -- cgit