diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-18 09:38:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-18 14:03:12 +0100 |
commit | 3339789afd583249fbab09435c81398669b4343b (patch) | |
tree | 818e63ceac4d41d2796e83e26fff12c81f05bbfa /l10ntools | |
parent | 0154776f2d0bc13e44411e67f6b02bd5032b18a0 (diff) |
cppcheck: catchExceptionByValue
Change-Id: Id8e2fc67a1de4f608188d070f0f536576ad0e69a
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/gLang.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |