OneShot: use default value to overload for cancel

Instead of having two variants of cancel(), have only one with a default value
for its argument. No functional change at all, but nicer code.
pull/442/head
Shriramana Sharma 7 years ago committed by Gergely Nagy
parent 11087e8a43
commit 52518eb94b

@ -42,10 +42,7 @@ class OneShot : public kaleidoscope::Plugin {
}
static bool isActive(Key key);
static bool isSticky(Key key);
static void cancel(bool with_stickies);
static void cancel(void) {
cancel(false);
}
static void cancel(bool with_stickies = false);
static uint16_t time_out;
static int16_t double_tap_time_out;
static uint16_t hold_time_out;

Loading…
Cancel
Save