]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCdisplay.hxx
The most important part is that it fixes possible
[flightgear.git] / src / ATC / ATCdisplay.hxx
index c41bb72f8fc0477af09919bda578ddc1443fe11e..66ec2146b5bceeadfe830b68e32eb373f5953732 100644 (file)
@@ -56,7 +56,7 @@ private:
     bool rep_msg;              // Flag to indicate there is a repeating transmission to display
     bool change_msg_flag;      // Flag to indicate that the repeating message has changed
     double dsp_offset1;                // Used to set the correct position of scrolling display
-    double dsp_offset2;        
+    double dsp_offset2;
     string rep_msg_str;                // The repeating transmission to play
     atcMessageList msgList;
     atcMessageListIterator msgList_itr;
@@ -76,16 +76,16 @@ public:
 
     // Register a single message for display after a delay of delay seconds
     // Will automatically stop displaying after a suitable interval.
-    void RegisterSingleMessage(string msg, double delay);      // OK - I know passing a string in and out is probably not good but it will have to do for now.
+    void RegisterSingleMessage(const string& msg, double delay = 0.0);
 
     // For now we will assume only one repeating message at once
     // This is not really robust
 
     // Register a continuously repeating message
-    void RegisterRepeatingMessage(string msg);
+    void RegisterRepeatingMessage(const string& msg);
 
     // Change a repeating message - assume that the message changes after the string has finished for now
-    void ChangeRepeatingMessage(string newmsg); 
+    void ChangeRepeatingMessage(const string& newmsg); 
 
     // Cancel the current repeating message
     void CancelRepeatingMessage();