]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/AirportList.cxx
Fix line endings
[flightgear.git] / src / GUI / AirportList.cxx
index 6ded7f88b2c9bb7c5b9524f4f7a28fe50a718b41..16f9785d037664420a3c0199f7459286111c6b5c 100644 (file)
@@ -18,8 +18,8 @@ AirportList::AirportList (int x, int y, int width, int height)
     for (int i = 0; i < _nAirports; i++) {
         const FGAirport *airport = _airports->getAirport(i);
         snprintf(buf, 1023, "%s  %s",
-                 airport->_id.c_str(),
-                 airport->_name.c_str());
+                 airport->getId().c_str(),
+                 airport->getName().c_str());
 
         unsigned int buf_len = (strlen(buf) > 1023) ? 1023 : strlen(buf);
         
@@ -41,9 +41,9 @@ AirportList::~AirportList ()
 }
 
 char *
-AirportList::getStringValue ()
+AirportList::getListStringValue ()
 {
-    return (char *)_airports->getAirport(getIntegerValue())->_id.c_str();
+    return (char *)_airports->getAirport(getListIntegerValue())->getId().c_str();
 }
 
 // end of AirportList.cxx