From 2bd6cfd735b9fc56f40ad0899ed9d46b4e08f987 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Mon, 2 Mar 2026 17:27:15 +0100 Subject: [PATCH] refactor(core): rename fields to start with underscore Test-bot: skip --- core/src/ldml/ldml_processor.cpp | 8 ++++---- core/src/ldml/ldml_processor.hpp | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/ldml/ldml_processor.cpp b/core/src/ldml/ldml_processor.cpp index 7de84315b6..9ef36b62fc 100644 --- a/core/src/ldml/ldml_processor.cpp +++ b/core/src/ldml/ldml_processor.cpp @@ -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]; diff --git a/core/src/ldml/ldml_processor.hpp b/core/src/ldml/ldml_processor.hpp index 6bf8a8fa31..b673a9275c 100644 --- a/core/src/ldml/ldml_processor.hpp +++ b/core/src/ldml/ldml_processor.hpp @@ -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