From f2f38f2e71059b06e0c3ec542d0fdc3e8c34d0e3 Mon Sep 17 00:00:00 2001 From: "DrZiplok@gmail.com" Date: Wed, 29 Dec 2010 03:32:37 +0000 Subject: [PATCH] Make the GPS ctor protected so that it can't be accidentally constructed or copied. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1353 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_GPS/GPS.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/AP_GPS/GPS.h b/libraries/AP_GPS/GPS.h index 090959ef68..2fcb8c4a2c 100644 --- a/libraries/AP_GPS/GPS.h +++ b/libraries/AP_GPS/GPS.h @@ -15,15 +15,6 @@ class GPS { public: - /// Constructor - /// - /// @note The stream is expected to be set up and configured for the - /// correct bitrate before ::init is called. - /// - /// @param s Stream connected to the GPS module. - /// - GPS(Stream *s) : _port(s) {}; - /// Update GPS state based on possible bytes received from the module. /// /// This routine must be called periodically to process incoming data. @@ -87,6 +78,15 @@ public: protected: Stream *_port; ///< port the GPS is attached to + /// Constructor + /// + /// @note The stream is expected to be set up and configured for the + /// correct bitrate before ::init is called. + /// + /// @param s Stream connected to the GPS module. + /// + GPS(Stream *s) : _port(s) {}; + /// read from the GPS stream and update properties /// /// Must be implemented by the GPS driver.