From 9c94c3803f646bf06e6bc41137394caa37faa34c Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 30 Jan 2025 11:27:01 -0500 Subject: [PATCH] Cleanup: Follow style guide for public member naming --- .../blentranslation/intern/messages.cc | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source/blender/blentranslation/intern/messages.cc b/source/blender/blentranslation/intern/messages.cc index b5d7bc313d0..ff1281e4b5a 100644 --- a/source/blender/blentranslation/intern/messages.cc +++ b/source/blender/blentranslation/intern/messages.cc @@ -389,34 +389,34 @@ class MOFile { /* Message lookup key. */ struct MessageKeyRef { - StringRef context_; - StringRef str_; + StringRef context; + StringRef str; uint64_t hash() const { - return get_default_hash(context_, str_); + return get_default_hash(this->context, this->str); } }; struct MessageKey { - std::string context_; - std::string str_; + std::string context; + std::string str; MessageKey(const StringRef c) { const size_t pos = c.find(char(4)); if (pos == StringRef::not_found) { - str_ = c; + this->str = c; } else { - context_ = c.substr(0, pos); - str_ = c.substr(pos + 1); + this->context = c.substr(0, pos); + this->str = c.substr(pos + 1); } } uint64_t hash() const { - return get_default_hash(context_, str_); + return get_default_hash(this->context, this->str); } static uint64_t hash_as(const MessageKeyRef &key) @@ -427,12 +427,12 @@ struct MessageKey { inline bool operator==(const MessageKey &a, const MessageKey &b) { - return a.context_ == b.context_ && a.str_ == b.str_; + return a.context == b.context && a.str == b.str; } inline bool operator==(const MessageKeyRef &a, const MessageKey &b) { - return a.context_ == b.context_ && a.str_ == b.str_; + return a.context == b.context && a.str == b.str; } /* Messages translation based on .mo files. */