wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
Date: Sun, 21 Nov 2004 16:19:25 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/21 21:13:11

Modified files:
        src            : playlevel.cpp 

Log message:
        Removal of MSVC warnings by uglifying the code is just plain evil. 
There is no way I would allow GCC users to suffer from MSVC shortcomings.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playlevel.cpp.diff?tr1=1.161&tr2=1.162&r1=text&r2=text

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.161 wesnoth/src/playlevel.cpp:1.162
--- wesnoth/src/playlevel.cpp:1.161     Thu Nov 18 22:00:12 2004
+++ wesnoth/src/playlevel.cpp   Sun Nov 21 21:13:11 2004
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.161 2004/11/18 22:00:12 ydirson Exp $ */
+/* $Id: playlevel.cpp,v 1.162 2004/11/21 21:13:11 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -555,8 +555,7 @@
                                        try {
                                                replaying = 
do_replay(gui,map,gameinfo,units,teams,
                                                                      
player_number,status,state_of_game);
-                                       } catch(replay::error& e) {
-                                               e;
+                                       } catch(replay::error&) {
                                                std::cerr << "caught 
replay::error\n";
                                                
gui::show_dialog(gui,NULL,"",_("The file you have tried to load is 
corrupt"),gui::OK_ONLY);
 
@@ -808,8 +807,7 @@
                        return VICTORY;
                }
        } //end catch
-       catch(replay::error& e) {
-               e;
+       catch(replay::error&) {
                std::cerr << "caught replay::error\n";
                gui::show_dialog(gui,NULL,"",_("The file you have tried to load 
is corrupt"),
                                 gui::OK_ONLY);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]