Author: mordante
Date: Sun Feb 27 16:20:14 2011
New Revision: 48671
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48671&view=rev
Log:
Catch exception by reference.
Issue found by cppcheck.
Modified:
trunk/src/tools/exploder_cutter.cpp
Modified: trunk/src/tools/exploder_cutter.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tools/exploder_cutter.cpp?rev=48671&r1=48670&r2=48671&view=diff
==============================================================================
--- trunk/src/tools/exploder_cutter.cpp (original)
+++ trunk/src/tools/exploder_cutter.cpp Sun Feb 27 16:20:14 2011
@@ -38,7 +38,7 @@
try {
scoped_istream stream = preprocess_file(conf_string);
read(res, *stream);
- } catch(config::error err) {
+ } catch(config::error& err) {
throw exploder_failure("Unable to load the configuration for
the file " + filename + ": "+ err.message);
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits