X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTraffic%2FSchedule.hxx;h=daaa4e2406c250a81a6a0acd847c22c87706f985;hb=6f7a9a5b1badb82c5a93dd89bbf30060f5fdf42a;hp=b099bd08c20f27cc0a54586174c70492b0139602;hpb=5c0dbf7b6510dd5abdef8478f89ed2469b190d93;p=flightgear.git diff --git a/src/Traffic/Schedule.hxx b/src/Traffic/Schedule.hxx index b099bd08c..daaa4e240 100644 --- a/src/Traffic/Schedule.hxx +++ b/src/Traffic/Schedule.hxx @@ -14,7 +14,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * **************************************************************************/ @@ -73,11 +73,11 @@ class FGAISchedule int getCruiseAlt () { return flights.begin()->getCruiseAlt (); }; double getRadius () { return radius; }; double getGroundOffset () { return groundOffset;}; - string getFlightType () { return flightType;}; - string getAirline () { return airline; }; - string getAircraft () { return acType; }; - string getCallSign () { return flights.begin()->getCallSign (); }; - string getRegistration () { return registration;}; + const string& getFlightType () { return flightType;}; + const string& getAirline () { return airline; }; + const string& getAircraft () { return acType; }; + const string& getCallSign () { return flights.begin()->getCallSign (); }; + const string& getRegistration () { return registration;}; bool getHeavy () { return heavy; }; bool operator< (const FGAISchedule &other) const { return (distanceToUser < other.distanceToUser); }; //void * getAiRef () { return AIManagerRef; };