From 1d8c3040f1a926d7432510159c2814c104a09279 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 2 Jun 2017 23:01:04 -0700 Subject: [PATCH] Fix issues found by the linter. --- src/Kaleidoscope/TapDance.cpp | 4 ++-- src/Kaleidoscope/TapDance.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Kaleidoscope/TapDance.cpp b/src/Kaleidoscope/TapDance.cpp index 76518fce..9716f9b2 100644 --- a/src/Kaleidoscope/TapDance.cpp +++ b/src/Kaleidoscope/TapDance.cpp @@ -18,7 +18,7 @@ #include -using namespace KaleidoscopePlugins::Ranges; +using KaleidoscopePlugins::Ranges; namespace KaleidoscopePlugins { // --- state --- @@ -222,7 +222,7 @@ TapDance::loopHook (bool postClear) { if (endTime && millis () > endTime) timeout(); } -}; +} // namespace KaleidoscopePlugins __attribute__((weak)) void diff --git a/src/Kaleidoscope/TapDance.h b/src/Kaleidoscope/TapDance.h index 4d1d0268..60cf8925 100644 --- a/src/Kaleidoscope/TapDance.h +++ b/src/Kaleidoscope/TapDance.h @@ -42,7 +42,7 @@ class TapDance : public KaleidoscopePlugin { TapDance (void); - virtual void begin (void) final; + void begin (void) final; static uint16_t timeOut; void actionKeys (uint8_t tapCount, ActionType tapDanceAction, uint8_t maxKeys, const Key tapKeys[]); @@ -64,8 +64,8 @@ class TapDance : public KaleidoscopePlugin { static void interrupt (void); static void timeout (void); static Key release (uint8_t tapDanceIndex); -}; -}; +} +} // namespace KaleidoscopePlugins void tapDanceAction (uint8_t tapDanceIndex, byte row, byte col, uint8_t tapCount, KaleidoscopePlugins::TapDance::ActionType tapDanceAction);