Author: mordante
Date: Sun Feb 27 16:19:50 2011
New Revision: 48663

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

Issue found by cppcheck.

Modified:
    trunk/src/font.cpp

Modified: trunk/src/font.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/font.cpp?rev=48663&r1=48662&r2=48663&view=diff
==============================================================================
--- trunk/src/font.cpp (original)
+++ trunk/src/font.cpp Sun Feb 27 16:19:50 2011
@@ -193,7 +193,7 @@
                        chunks.push_back(current_chunk);
                }
        }
-       catch(utils::invalid_utf8_exception e) {
+       catch(utils::invalid_utf8_exception&) {
                WRN_FT << "Invalid UTF-8 string: \"" << utf8_text << "\"\n";
        }
        return chunks;


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

Reply via email to