From: Maxim Mamontov Date: Mon, 21 Mar 2011 14:24:08 +0000 (+0200) Subject: Catch exception via const reference instead of value X-Git-Tag: 2.407-rc3~130 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0a85724f8a592894c245f88b425e066a6b9f0e8d?ds=inline Catch exception via const reference instead of value --- diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index e7d5ebaa..1eaef642 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -783,7 +783,7 @@ try { i = StrToIPS(ipStr); } -catch (string s) +catch (const string & s) { STG_LOCKER lock(&mutex, __FILE__, __LINE__); errorStr = "User \'" + login + "\' data not read. Parameter IP address. " + s;