]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/tacan.cxx
replace depreciated plib symbols with their new forms
[flightgear.git] / src / Instrumentation / tacan.cxx
index faa09a01fc7dfaecc1b82387adf0330906a5dba1..93dd2576b7d8338d53cc8df079ac8c7ae331b649 100755 (executable)
@@ -353,7 +353,7 @@ TACAN::search (double frequency_mhz, double longitude_rad,
 }
 
 double
-TACAN::searchChannel (string _channel){
+TACAN::searchChannel (const string& _channel){
     
     double frequency_khz = 0;
     
@@ -365,7 +365,7 @@ TACAN::searchChannel (string _channel){
         frequency_khz = freq->get_freq();
         SG_LOG( SG_INSTR, SG_DEBUG, "freq output " << frequency_khz  );
         //check sanity
-        if (frequency_khz >9620 and  frequency_khz <= 12130)return frequency_khz/100;
+        if (frequency_khz >9620 && frequency_khz <= 12130)return frequency_khz/100;
     }
     return frequency_khz = 0;
 } // end TACAN::searchChannel