1
0
Fork 0

msvc warning fixes

This commit is contained in:
Torsten Dreyer 2010-12-15 16:40:25 +01:00
parent 1b4a4c9f52
commit 58fbd0d72a
3 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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) {

View file

@ -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)