]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/positioninit.cxx
Remove confusing reference to SDL/GLUT
[flightgear.git] / src / Main / positioninit.cxx
index 0c148d6d6d88abaeee0c271d0a7f1f575008d8b7..816e997831fcaee8cf0fa37668f94c77a36450c2 100644 (file)
@@ -37,6 +37,7 @@
 #include <AIModel/AIManager.hxx>
 
 using std::endl;
+using std::string;
 
 namespace flightgear
 {
@@ -328,7 +329,7 @@ static bool fgSetPosFromNAV( const string& id, const double& freq, FGPositioned:
   FGNavList::TypeFilter filter(type);
   const nav_list_type navlist = FGNavList::findByIdentAndFreq( id.c_str(), freq, &filter );
   
-  if (navlist.size() == 0 ) {
+  if (navlist.empty()) {
     SG_LOG( SG_GENERAL, SG_ALERT, "Failed to locate NAV = "
            << id << ":" << freq );
     return false;