msvc warning fixes
This commit is contained in:
parent
1b4a4c9f52
commit
58fbd0d72a
3 changed files with 4 additions and 4 deletions
|
@ -1128,7 +1128,7 @@ void FGRouteMgr::loadRoute()
|
|||
|
||||
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;
|
||||
|
|
|
@ -369,7 +369,7 @@ void fgPopup::applySize(puObject *object)
|
|||
void FGDialog::ConditionalObject::update(FGDialog* aDlg)
|
||||
{
|
||||
if (_name == "visible") {
|
||||
bool wasVis = _pu->isVisible();
|
||||
bool wasVis = _pu->isVisible() != 0;
|
||||
bool newVis = test();
|
||||
|
||||
if (newVis == wasVis) {
|
||||
|
@ -382,7 +382,7 @@ void FGDialog::ConditionalObject::update(FGDialog* aDlg)
|
|||
_pu->hide();
|
||||
}
|
||||
} else if (_name == "enable") {
|
||||
bool wasEnabled = _pu->isActive();
|
||||
bool wasEnabled = _pu->isActive() != 0;
|
||||
bool newEnable = test();
|
||||
|
||||
if (wasEnabled == newEnable) {
|
||||
|
|
|
@ -66,7 +66,7 @@ std::string Waypt::ident() const
|
|||
|
||||
bool Waypt::flag(WayptFlag aFlag) const
|
||||
{
|
||||
return (_flags & aFlag);
|
||||
return ((_flags & aFlag) != 0);
|
||||
}
|
||||
|
||||
void Waypt::setFlag(WayptFlag aFlag, bool aV)
|
||||
|
|
Loading…
Add table
Reference in a new issue