1
0
Fork 0

Catch exception by reference, not by value

This commit is contained in:
Torsten Dreyer 2015-04-07 12:11:15 +02:00
parent f8591433b1
commit 7b62f6ce2f

View 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;