From: Torsten Dreyer Date: Tue, 7 Apr 2015 10:11:15 +0000 (+0200) Subject: Catch exception by reference, not by value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b62f6ce2f50e97ca30608e71e3f9a86e69f6d51;p=flightgear.git Catch exception by reference, not by value --- diff --git a/src/Environment/realwx_ctrl.cxx b/src/Environment/realwx_ctrl.cxx index a0abb7837..608525246 100644 --- a/src/Environment/realwx_ctrl.cxx +++ b/src/Environment/realwx_ctrl.cxx @@ -127,7 +127,7 @@ void LiveMetarProperties::handleMetarData( const std::string & data ) try { m = new FGMetar(data.c_str()); } - catch( sg_io_exception ) { + catch( sg_io_exception &) { SG_LOG( SG_ENVIRONMENT, SG_WARN, "Can't parse metar: " << data ); _failure = true; return;