From: Maxim Mamontov Date: Tue, 22 Mar 2011 13:16:56 +0000 (+0200) Subject: Catch exception via const referense, not a value X-Git-Tag: 2.407-rc3~117 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/691982ac8d9fdddfabe6fa3225c0c3c854a02bfc Catch exception via const referense, not a value --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index 59e7e3e8..e9f529c6 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -804,7 +804,7 @@ try { i = StrToIPS(ipStr); } -catch (string s) +catch (const string & s) { mysql_free_result(res); errorStr = "User \'" + login + "\' data not read. Parameter IP address. " + s;