]> git.stg.codes - stg.git/commitdiff
Catch exception via const referense, not a value
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 22 Mar 2011 13:16:56 +0000 (15:16 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 22 Mar 2011 13:16:56 +0000 (15:16 +0200)
projects/stargazer/plugins/store/mysql/mysql_store.cpp

index 59e7e3e8189d557fc8a6261d26b246d7ff9f07d4..e9f529c6522fcd62020231ffacde835c09f682b4 100644 (file)
@@ -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;