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/ScreenPlacement.cc | |
parent | db08329d8bc689ff14cbb9084814d652ae349621 (diff) | |
download | fluxbox_pavel-f859e78cb24cf69cc06e4395c58d804537f301c7.zip fluxbox_pavel-f859e78cb24cf69cc06e4395c58d804537f301c7.tar.bz2 |
Exceptions should be caught by reference.
Found using cppcheck.
Diffstat (limited to 'src/ScreenPlacement.cc')
-rw-r--r-- | src/ScreenPlacement.cc | 2 |
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 |