From e57cfbc0dbaa3164dfbff4c8d2828460f19d431e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 2 Jun 2017 14:04:20 -0700 Subject: [PATCH] remove a bunch of semicolons that the linter says are superfluous --- src/Kaleidoscope.h | 2 +- src/key_defs.h | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Kaleidoscope.h b/src/Kaleidoscope.h index b81742a8..6a4a715e 100644 --- a/src/Kaleidoscope.h +++ b/src/Kaleidoscope.h @@ -62,7 +62,7 @@ class Kaleidoscope_ { void setup(const byte keymap_count) { setup(); - }; + } void setup(void); void loop(void); void use(KaleidoscopePlugin *plugin, ...) __attribute__((sentinel)); diff --git a/src/key_defs.h b/src/key_defs.h index 4f245833..adaea5d5 100644 --- a/src/key_defs.h +++ b/src/key_defs.h @@ -20,41 +20,41 @@ typedef union Key_ { inline bool operator==(uint16_t rhs) { return this->raw == rhs; - }; + } inline bool operator==(const Key_ rhs) { return this->raw == rhs.raw; - }; + } inline Key_& operator=(uint16_t raw) { this->raw = raw; return *this; - }; + } inline bool operator!=(const Key_& rhs) { return !(*this == rhs); - }; + } inline bool operator>=(uint16_t raw) { return this->raw >= raw; - }; + } inline bool operator<=(uint16_t raw) { return this->raw <= raw; - }; + } inline bool operator>(uint16_t raw) { return this->raw > raw; - }; + } inline bool operator<(uint16_t raw) { return this->raw < raw; - }; + } inline bool operator>=(const Key_& other) { return this->raw >= other.raw; - }; + } inline bool operator<=(const Key_& other) { return this->raw <= other.raw; - }; + } inline bool operator>(const Key_& other) { return this->raw > other.raw; - }; + } inline bool operator<(const Key_& other) { return this->raw < other.raw; - }; + } } Key;