X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNavaids%2Fmarkerbeacon.cxx;h=71584504f3a312f4fa4ccee1ff47e6b31db3bb27;hb=43c47f3823faa0829aada79d64a26c2960d2a1d2;hp=9eaeff2cd27dac67395fa29fad514911f94fedbe;hpb=d756f913ec88a912e5bf34a06538952cf378fed7;p=flightgear.git diff --git a/src/Navaids/markerbeacon.cxx b/src/Navaids/markerbeacon.cxx index 9eaeff2cd..71584504f 100644 --- a/src/Navaids/markerbeacon.cxx +++ b/src/Navaids/markerbeacon.cxx @@ -34,7 +34,7 @@ using std::string; FGPositioned::Type -FGMarkerBeacon::mapType(int aTy) +FGMarkerBeaconRecord::mapType(int aTy) { switch (aTy) { case 7: return FGPositioned::OM; @@ -42,12 +42,12 @@ FGMarkerBeacon::mapType(int aTy) case 9: return FGPositioned::IM; default: throw sg_range_exception("Got a non-marker-beacon-type", - "FGMarkerBeacon::mapType"); + "FGMarkerBeaconRecord::mapType"); } } -FGMarkerBeacon* -FGMarkerBeacon::create(int aTy, const string& aName, const SGGeod& aPos) +FGMarkerBeaconRecord* +FGMarkerBeaconRecord::create(int aTy, const string& aName, const SGGeod& aPos) { Type fgpTy = mapType(aTy); FGRunway* runway = getRunwayFromName(aName); @@ -57,11 +57,11 @@ FGMarkerBeacon::create(int aTy, const string& aName, const SGGeod& aPos) pos.setElevationFt(runway->elevation()); } - return new FGMarkerBeacon(fgpTy, runway, pos); + return new FGMarkerBeaconRecord(fgpTy, runway, pos); } -FGMarkerBeacon::FGMarkerBeacon(Type aTy, FGRunway* aRunway, const SGGeod& aPos) : +FGMarkerBeaconRecord::FGMarkerBeaconRecord(Type aTy, FGRunway* aRunway, const SGGeod& aPos) : FGPositioned(aTy, string(), aPos), _runway(aRunway) {