From 71a09389bfe6698fcbbca7e6718e939dcc587f95 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Fri, 4 Mar 2022 10:59:04 -0600 Subject: [PATCH] Use assignment-style initialization in OneShot Signed-off-by: Michael Richters --- .../src/kaleidoscope/plugin/OneShot.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/Kaleidoscope-OneShot/src/kaleidoscope/plugin/OneShot.h b/plugins/Kaleidoscope-OneShot/src/kaleidoscope/plugin/OneShot.h index 33b1b3c7..9a1e7e8c 100644 --- a/plugins/Kaleidoscope-OneShot/src/kaleidoscope/plugin/OneShot.h +++ b/plugins/Kaleidoscope-OneShot/src/kaleidoscope/plugin/OneShot.h @@ -187,21 +187,21 @@ class OneShot : public kaleidoscope::Plugin { // -------------------------------------------------------------------------- // Configuration variables - uint16_t timeout_{2500}; - uint16_t hold_timeout_{250}; - int16_t double_tap_timeout_{-1}; + uint16_t timeout_ = 2500; + uint16_t hold_timeout_ = 250; + int16_t double_tap_timeout_ = -1; - uint16_t stickable_keys_{uint16_t(-1)}; - bool auto_modifiers_{false}; - bool auto_layers_{false}; + uint16_t stickable_keys_ = -1; + bool auto_modifiers_ = false; + bool auto_layers_ = false; // -------------------------------------------------------------------------- // State variables KeyAddrBitfield temp_addrs_; KeyAddrBitfield glue_addrs_; - uint16_t start_time_{0}; - KeyAddr prev_key_addr_{invalid_key_addr}; + uint16_t start_time_ = 0; + KeyAddr prev_key_addr_ = invalid_key_addr; // -------------------------------------------------------------------------- // Internal utility functions