diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2011-11-02 17:33:37 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2012-01-04 06:51:35 (GMT) |
commit | f859e78cb24cf69cc06e4395c58d804537f301c7 (patch) | |
tree | afc547dd4762d262b59a3109cdb080cffc26dfbd /src/tests | |
parent | db08329d8bc689ff14cbb9084814d652ae349621 (diff) | |
download | fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.zip fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.tar.bz2 |
Exceptions should be caught by reference.
Found using cppcheck.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/StringUtiltest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/StringUtiltest.cc b/src/tests/StringUtiltest.cc index a8d8d57..b723eef 100644 --- a/src/tests/StringUtiltest.cc +++ b/src/tests/StringUtiltest.cc | |||
@@ -137,7 +137,7 @@ int main() { | |||
137 | 137 | ||
138 | cerr<<"original = "<<replaceme<<endl; | 138 | cerr<<"original = "<<replaceme<<endl; |
139 | cerr<<"newstr = "<<newstr<<endl; | 139 | cerr<<"newstr = "<<newstr<<endl; |
140 | } catch (std::exception e) { | 140 | } catch (std::exception & e) { |
141 | cerr<<"exception: "<<e.what()<<endl; | 141 | cerr<<"exception: "<<e.what()<<endl; |
142 | } | 142 | } |
143 | cerr<<"Testing stringtok."<<endl; | 143 | cerr<<"Testing stringtok."<<endl; |