From: durk Date: Fri, 30 Jan 2009 19:05:27 +0000 (+0000) Subject: Note to self: Do test compile, even when it's only adding a simple if/else X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b15a5508a0ec1866c67e236d0caecb292c200f71;p=flightgear.git Note to self: Do test compile, even when it's only adding a simple if/else statement around two existing pieces of code. :-) --- diff --git a/src/Airports/xmlloader.cxx b/src/Airports/xmlloader.cxx index 1009f8a0e..440d7718f 100644 --- a/src/Airports/xmlloader.cxx +++ b/src/Airports/xmlloader.cxx @@ -14,7 +14,9 @@ // #include + #include
+#include
#include "xmlloader.hxx" #include "dynamicloader.hxx" @@ -67,12 +69,13 @@ void XMLLoader::load(FGAirportDynamics* d) { try { readXML(parkpath.str(), visitor); d->init(); - } - catch (const sg_exception &e) { + } + catch (const sg_exception &e) { + } + return; } - return; - } - } + } + } } }