refactor(core): rename fields to start with underscore

Test-bot: skip
This commit is contained in:
Eberhard Beilharz 2026-03-02 17:27:15 +01:00
parent d8a5f694da
commit 2bd6cfd735
No known key found for this signature in database
GPG key ID: E9140597606020D3
2 changed files with 10 additions and 10 deletions

View file

@ -532,10 +532,10 @@ ldml_event_state::ldml_event_state(
uint8_t i,
uint16_t e) {
this->state = s;
this->vk = v;
this->modifier_state = m;
this->is_key_down = i;
this->event_flags = e;
this->_vk = v;
this->_modifier_state = m;
this->_is_key_down = i;
this->_event_flags = e;
actions.persist_options = new km_core_option_item[1];
actions.persist_options[0] = NULL_OPTIONS[0];

View file

@ -178,10 +178,10 @@ public:
size_t context_to_string(std::u32string &str, bool include_markers = true);
private:
km_core_virtual_key vk;
uint16_t modifier_state;
uint8_t is_key_down;
uint16_t event_flags;
km_core_virtual_key _vk;
uint16_t _modifier_state;
uint8_t _is_key_down;
uint16_t _event_flags;
km_core_state *state;
// our in-flight action struct.
@ -194,12 +194,12 @@ public:
// implementation
km_core_virtual_key
ldml_event_state::get_vk() const {
return vk;
return _vk;
}
uint16_t
ldml_event_state::get_modifier_state() const {
return modifier_state;
return _modifier_state;
}
} // namespace core