From 5c24c373d03a65ba587c29d122f998df48013fc8 Mon Sep 17 00:00:00 2001 From: uncrustify Date: Thu, 16 Aug 2012 23:19:44 -0700 Subject: [PATCH] uncrustify libraries/AP_GPS/AP_GPS_Shim.h --- libraries/AP_GPS/AP_GPS_Shim.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_Shim.h b/libraries/AP_GPS/AP_GPS_Shim.h index e4ae5602d6..fe20285c9c 100644 --- a/libraries/AP_GPS/AP_GPS_Shim.h +++ b/libraries/AP_GPS/AP_GPS_Shim.h @@ -17,11 +17,13 @@ class AP_GPS_Shim : public GPS { public: - AP_GPS_Shim() : GPS(NULL) {} + AP_GPS_Shim() : GPS(NULL) { + } - virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE) {}; - virtual bool read(void) { - bool updated = _updated; + virtual void init(enum GPS_Engine_Setting nav_setting = GPS_ENGINE_NONE) { + }; + virtual bool read(void) { + bool updated = _updated; _updated = false; return updated; } @@ -29,7 +31,7 @@ public: /// Set-and-mark-updated macro for the public member variables; each instance /// defines a member function set_() /// -#define __GPS_SHIM_SET(__type, __name) void set_##__name(__type v) { __name = v; _updated = true; } +#define __GPS_SHIM_SET(__type, __name) void set_ ## __name(__type v) { __name = v; _updated = true; } __GPS_SHIM_SET(uint32_t, time); __GPS_SHIM_SET(long, latitude); __GPS_SHIM_SET(long, longitude); @@ -41,7 +43,7 @@ public: #undef __GPS_SHIM_SET private: - bool _updated; ///< set anytime a member is updated, cleared when read() returns true + bool _updated; ///< set anytime a member is updated, cleared when read() returns true }; -#endif // AP_GPS_HIL_H +#endif // AP_GPS_HIL_H