From 5d66c3ed623a92fa05626ba73a0fef62929742da Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Sun, 10 Feb 2019 10:31:20 -0800 Subject: [PATCH] AP_GPS: unify singleton naming to _singleton and get_singleton() --- libraries/AP_GPS/AP_GPS.cpp | 4 ++-- libraries/AP_GPS/AP_GPS.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS.cpp b/libraries/AP_GPS/AP_GPS.cpp index ab41e05ba3..c164d3787b 100644 --- a/libraries/AP_GPS/AP_GPS.cpp +++ b/libraries/AP_GPS/AP_GPS.cpp @@ -561,7 +561,7 @@ AP_GPS::GPS_Status AP_GPS::highest_supported_status(uint8_t instance) const bool AP_GPS::should_df_log() const { - AP_Logger *instance = AP_Logger::instance(); + AP_Logger *instance = AP_Logger::get_singleton(); if (instance == nullptr) { return false; } @@ -1546,7 +1546,7 @@ namespace AP { AP_GPS &gps() { - return AP_GPS::gps(); + return AP_GPS::get_singleton(); } }; diff --git a/libraries/AP_GPS/AP_GPS.h b/libraries/AP_GPS/AP_GPS.h index 2d0ff96786..e17030e931 100644 --- a/libraries/AP_GPS/AP_GPS.h +++ b/libraries/AP_GPS/AP_GPS.h @@ -71,7 +71,7 @@ public: AP_GPS(const AP_GPS &other) = delete; AP_GPS &operator=(const AP_GPS&) = delete; - static AP_GPS &gps() { + static AP_GPS &get_singleton() { return *_singleton; }