Fix overridable `OneShot.isStickable(key)` function

Now that it's not a `static` class function, we need to use a different
invocation, and we can't declare `isStickableDefault()` with the `always_inline`
attribute, or the user's override won't be able to call it because there will be
nothing to link to.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1121/head
Michael Richters 3 years ago
parent a0c62ff0db
commit 3204034089
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -89,7 +89,6 @@ bool OneShot::isStickable(Key key) const {
return isStickableDefault(key);
}
__attribute__((always_inline)) inline
bool OneShot::isStickableDefault(Key key) const {
int8_t n;
// If the key is either a keyboard modifier or a layer shift, we check to see

@ -51,10 +51,10 @@ class OneShotInsert : public Plugin {
}
};
bool OneShot::isStickable(Key key) {
bool OneShot::isStickable(Key key) const {
if (key == Key_LeftAlt)
return false;
return OneShot::isStickableDefault(key);
return isStickableDefault(key);
}
} // namespace plugin

Loading…
Cancel
Save