Author: mordante
Date: Sun Feb 27 16:19:56 2011
New Revision: 48665

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

Issue found by cppcheck.

Modified:
    trunk/src/mapgen_dialog.cpp

Modified: trunk/src/mapgen_dialog.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mapgen_dialog.cpp?rev=48665&r1=48664&r2=48665&view=diff
==============================================================================
--- trunk/src/mapgen_dialog.cpp (original)
+++ trunk/src/mapgen_dialog.cpp Sun Feb 27 16:19:56 2011
@@ -414,7 +414,7 @@
        try{
                res["map_data"] = generate_map(args,&labels);
        }
-       catch (mapgen_exception exc){
+       catch (mapgen_exception& exc){
                res["map_data"] = "";
                res["error_message"] = exc.message;
        }


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

Reply via email to