aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/main.cc
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2011-11-02 17:33:37 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-01-04 06:51:35 (GMT)
commitf859e78cb24cf69cc06e4395c58d804537f301c7 (patch)
treeafc547dd4762d262b59a3109cdb080cffc26dfbd /util/fbrun/main.cc
parentdb08329d8bc689ff14cbb9084814d652ae349621 (diff)
downloadfluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.zip
fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.tar.bz2
Exceptions should be caught by reference.
Found using cppcheck.
Diffstat (limited to 'util/fbrun/main.cc')
-rw-r--r--util/fbrun/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc
index edb88ff..af059d6 100644
--- a/util/fbrun/main.cc
+++ b/util/fbrun/main.cc
@@ -227,7 +227,7 @@ int main(int argc, char **argv) {
227 227
228 application.eventLoop(); 228 application.eventLoop();
229 229
230 } catch (string errstr) { 230 } catch (string & errstr) {
231 cerr<<"Error: "<<errstr<<endl; 231 cerr<<"Error: "<<errstr<<endl;
232 } 232 }
233} 233}