Author: mordante
Date: Sun Feb 27 16:20:19 2011
New Revision: 48673

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

Issue found by cppcheck.

Modified:
    trunk/src/whiteboard/side_actions.cpp

Modified: trunk/src/whiteboard/side_actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/side_actions.cpp?rev=48673&r1=48672&r2=48673&view=diff
==============================================================================
--- trunk/src/whiteboard/side_actions.cpp (original)
+++ trunk/src/whiteboard/side_actions.cpp Sun Feb 27 16:20:19 2011
@@ -193,7 +193,7 @@
        bool finished;
        try     {
                 finished = action->execute();
-       } catch (end_turn_exception e) {
+       } catch (end_turn_exception&) {
                actions_.erase(position);
                LOG_WB << "End turn exception caught during execution, deleting 
action. " << *this << "\n";
                validate_actions();


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

Reply via email to