From 691982ac8d9fdddfabe6fa3225c0c3c854a02bfc Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 22 Mar 2011 15:16:56 +0200 Subject: [PATCH] Catch exception via const referense, not a value --- projects/stargazer/plugins/store/mysql/mysql_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.2