]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIPlane.hxx
Catch sound exceptions at the earliest, report problem has an alert, and continue...
[flightgear.git] / src / ATC / AIPlane.hxx
index 630767207c7ca8e93347e3e627ad9db99db769c5..ed61205bcf2f79dae72cff53539392f8a6a7113c 100644 (file)
@@ -83,7 +83,7 @@ public:
        virtual LandingType GetLandingOption();
        
        // Return the callsign
-       inline string GetCallsign() {return plane.callsign;}
+       inline const string& GetCallsign() {return plane.callsign;}
 
 protected:
        PlaneRec plane;
@@ -143,11 +143,11 @@ private:
        // Outputs the transmission either on screen or as audio depending on user preference
        // The refname is a string to identify this sample to the sound manager
        // The repeating flag indicates whether the message should be repeated continuously or played once.
-       void Render(string refname, bool repeating);
+       void Render(const string& refname, bool repeating);
 
        // Cease rendering a transmission.
        // Requires the sound manager refname if audio, else "".
-       void NoRender(string refname);
+       void NoRender(const string& refname);
        
        // Rendering related stuff
        bool voice;                     // Flag - true if we are using voice