]> git.mxchange.org Git - flightgear.git/commitdiff
msvc warning fixes
authorTorsten Dreyer <Torsten@t3r.de>
Wed, 15 Dec 2010 15:40:25 +0000 (16:40 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Wed, 15 Dec 2010 15:40:25 +0000 (16:40 +0100)
src/Autopilot/route_mgr.cxx
src/GUI/dialog.cxx
src/Navaids/route.cxx

index 1530497e8395c4f41e695f611a34c3012159c3b0..127e2c39792c7fbae347536850608eb8c3f9c7f7 100644 (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;
index 8a4160499a489001193cae7e0f23687f80adb077..71d6d7279d170801612655a2113c5661884d0174 100644 (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) {
index 613e5b3c4613e72369f4924a4761ae717819d595..580c87c18170d2c809ac2323a6bfbb9f008c6d6d 100644 (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)