#include <Main/fg_props.hxx>
#include <Airports/runways.hxx>
-#include STL_STRING
+#include <string>
#include "simple.hxx"
#include "xmlloader.hxx"
// search for the airport nearest the specified position and
// passing the filter
FGAirport* FGAirportList::search(double lon_deg, double lat_deg,
- FGAirportSearchFilter& search)
+ FGAirportSearchFilter& filter)
{
double min_dist = 360.0;
airport_list_iterator it = airports_array.begin();
airport_list_iterator end = airports_array.end();
airport_list_iterator closest = end;
for (; it != end; ++it) {
- if (!search.acceptable(*it))
+ if (!filter.pass(*it))
continue;
// crude manhatten distance based on lat/lon difference