"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Model/modelmgr.cxx" between
flightgear-2020.3.7.tar.bz2 and flightgear-2020.3.8.tar.bz2

About: FlightGear is a multi-platform, cooperative flight simulator development project.

modelmgr.cxx  (flightgear-2020.3.7.tar.bz2):modelmgr.cxx  (flightgear-2020.3.8.tar.bz2)
skipping to change at line 160 skipping to change at line 160
{ {
_models = fgGetNode("/models", true); _models = fgGetNode("/models", true);
_listener.reset(new Listener(this)); _listener.reset(new Listener(this));
_models->addChangeListener(_listener.get()); _models->addChangeListener(_listener.get());
} }
void void
FGModelMgr::unbind () FGModelMgr::unbind ()
{ {
_models->removeChangeListener(_listener.get()); // work-around for FLIGHTGEAR-37D : crash when quitting during
// early startup
if (!_listener) {
_models->removeChangeListener(_listener.get());
}
_listener.reset(); _listener.reset();
_models.clear(); _models.clear();
} }
namespace namespace
{ {
double testNan(double val) double testNan(double val)
{ {
if (SGMisc<double>::isNaN(val)) if (SGMisc<double>::isNaN(val))
throw sg_range_exception("value is nan"); throw sg_range_exception("value is nan");
 End of changes. 1 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)