]> git.mxchange.org Git - simgear.git/blobdiff - simgear/route/waypoint.hxx
Modified Files:
[simgear.git] / simgear / route / waypoint.hxx
index a95b030f3576bdf8cefdfeb0c4e5898360590dca..2d995a3d0370b2e43e8006cee10f8fb9aeb36b80 100644 (file)
@@ -19,7 +19,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.
 //
 // $Id$
 
@@ -28,9 +28,9 @@
 #define _WAYPOINT_HXX
 
 
-#ifndef __cplusplus                                                          
+#ifndef __cplusplus
 # error This library requires C++
-#endif                                   
+#endif
 
 
 #include <simgear/compiler.h>
@@ -153,10 +153,10 @@ public:
     inline void set_distance( double d ) { distance = d; }
 
     /** @return waypoint id */
-    inline string get_id() const { return id; }
+    inline const string& get_id() const { return id; }
 
     /** @return waypoint name */
-    inline string get_name() const { return name; }
+    inline const string& get_name() const { return name; }
 
 };