]> git.mxchange.org Git - flightgear.git/commitdiff
Catch exception by reference, not by value
authorTorsten Dreyer <torsten@ŧ3r.de>
Tue, 7 Apr 2015 10:11:15 +0000 (12:11 +0200)
committerTorsten Dreyer <torsten@ŧ3r.de>
Tue, 7 Apr 2015 10:11:15 +0000 (12:11 +0200)
src/Environment/realwx_ctrl.cxx

index a0abb7837288236939c7e2fb8f64f621689ffea8..6085252461197f20a647f00e86f44fa97957bbbf 100644 (file)
@@ -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;