Author: mordante
Date: Sun Feb 27 16:20:17 2011
New Revision: 48672

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48672&view=rev
Log:
Catch exception by reference.

Issue found by cppcheck.

Modified:
    trunk/src/whiteboard/move.cpp

Modified: trunk/src/whiteboard/move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.cpp?rev=48672&r1=48671&r2=48672&view=diff
==============================================================================
--- trunk/src/whiteboard/move.cpp (original)
+++ trunk/src/whiteboard/move.cpp Sun Feb 27 16:20:17 2011
@@ -148,7 +148,7 @@
                team const& owner_team = resources::teams->at(team_index());
                try {
                        steps_finished = 
mouse_handler.move_unit_along_route(*route_, &final_location, 
owner_team.auto_shroud_updates());
-               } catch (end_turn_exception e) {
+               } catch (end_turn_exception&) {
                        arrow_->set_style(arrow::STYLE_STANDARD);
                        throw; // we rely on the caller to delete this action
                }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to