try {
readProperties(path.str(), routeData);
- } catch (sg_exception& e) {
+ } catch (sg_exception& ) {
// if XML parsing fails, the file might be simple textual list of waypoints
loadPlainTextRoute(path);
return;
void FGDialog::ConditionalObject::update(FGDialog* aDlg)
{
if (_name == "visible") {
- bool wasVis = _pu->isVisible();
+ bool wasVis = _pu->isVisible() != 0;
bool newVis = test();
if (newVis == wasVis) {
_pu->hide();
}
} else if (_name == "enable") {
- bool wasEnabled = _pu->isActive();
+ bool wasEnabled = _pu->isActive() != 0;
bool newEnable = test();
if (wasEnabled == newEnable) {
bool Waypt::flag(WayptFlag aFlag) const
{
- return (_flags & aFlag);
+ return ((_flags & aFlag) != 0);
}
void Waypt::setFlag(WayptFlag aFlag, bool aV)