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/main.cc | |
parent | db08329d8bc689ff14cbb9084814d652ae349621 (diff) | |
download | fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.zip fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.tar.bz2 |
Exceptions should be caught by reference.
Found using cppcheck.
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 8aea835..2afef3f 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -511,7 +511,7 @@ int main(int argc, char **argv) { | |||
511 | << _FB_CONSOLETEXT(main, ErrorStandardException, "Standard Exception", "Error message") | 511 | << _FB_CONSOLETEXT(main, ErrorStandardException, "Standard Exception", "Error message") |
512 | << ": " | 512 | << ": " |
513 | << e.what() << endl; | 513 | << e.what() << endl; |
514 | } catch (string error_str) { | 514 | } catch (string & error_str) { |
515 | cerr << _FB_CONSOLETEXT(Common, Error, "Error", "Error message header") | 515 | cerr << _FB_CONSOLETEXT(Common, Error, "Error", "Error message header") |
516 | << ": " | 516 | << ": " |
517 | << error_str << endl; | 517 | << error_str << endl; |