]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/navradio.cxx
better use unset() for unsetting ...
[flightgear.git] / src / Instrumentation / navradio.cxx
index 1eae58fe1ffb9e5b1537ec57392b029d00ead7b4..dc9c094b9871af5e0a2a2b1b622804710b65ca4f 100644 (file)
@@ -33,6 +33,7 @@
 #include <simgear/sg_inlines.h>
 #include <simgear/math/sg_random.h>
 #include <simgear/math/vector.hxx>
+#include <simgear/structure/exception.hxx>
 
 #include <Aircraft/aircraft.hxx>
 #include <Navaids/navlist.hxx>
@@ -40,7 +41,7 @@
 #include "navradio.hxx"
 
 #include <string>
-SG_USING_STD(string);
+using std::string;
 
 
 // Constructor
@@ -443,7 +444,7 @@ FGNavRadio::update(double dt)
         //////////////////////////////////////////////////////////
         // compute to/from flag status
         //////////////////////////////////////////////////////////
-        double value = false;
+        bool value = false;
         double offset = fabs(radial - target_radial);
         if ( tofrom_serviceable ) {
             if ( nav_slaved_to_gps_node->getBoolValue() ) {