aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenPlacement.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 /src/ScreenPlacement.cc
parentdb08329d8bc689ff14cbb9084814d652ae349621 (diff)
downloadfluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.zip
fluxbox-f859e78cb24cf69cc06e4395c58d804537f301c7.tar.bz2
Exceptions should be caught by reference.
Found using cppcheck.
Diffstat (limited to 'src/ScreenPlacement.cc')
-rw-r--r--src/ScreenPlacement.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScreenPlacement.cc b/src/ScreenPlacement.cc
index 73ddfa2..29c8b5f 100644
--- a/src/ScreenPlacement.cc
+++ b/src/ScreenPlacement.cc
@@ -99,7 +99,7 @@ bool ScreenPlacement::placeWindow(const FluxboxWindow &win, int head,
99 bool placed = false; 99 bool placed = false;
100 try { 100 try {
101 placed = m_strategy->placeWindow(win, head, place_x, place_y); 101 placed = m_strategy->placeWindow(win, head, place_x, place_y);
102 } catch (std::bad_cast cast) { 102 } catch (std::bad_cast & cast) {
103 // This should not happen. 103 // This should not happen.
104 // If for some reason we change the PlacementStrategy in Screen 104 // If for some reason we change the PlacementStrategy in Screen
105 // from ScreenPlacement to something else then we might get 105 // from ScreenPlacement to something else then we might get