]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/approach.hxx
allow to trigger widgets via accelerator key, which is defined via "keynum"
[flightgear.git] / src / ATC / approach.hxx
index 41e32f22ad9458093197a7d27a1d82f4cabe6b90..282f0c4bdc94308299d33a87336d758b249aa027 100644 (file)
@@ -153,14 +153,14 @@ public:
   // Add new plane to stack if not already registered 
   // Input:  pid - id of plane (name) 
   // Output: "true" if added; "false" if already existend
-  void AddPlane(string pid);
+  void AddPlane(const string& pid);
 
   // Remove plane from stack if out of range
   int RemovePlane();
   
   inline double get_bucket() const { return bucket; }
   inline int get_pnum() const { return num_planes; }
-  inline string get_trans_ident() { return trans_ident; }
+  inline const string& get_trans_ident() { return trans_ident; }
   
 private: