diff options
author | Bond-009 <bond.009@outlook.com> | 2018-05-06 19:07:34 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-05-06 19:07:34 +0200 |
commit | b9fdaf8a942ea2f79e48e3f735ba8916f3364e70 (patch) | |
tree | 41c6f10550a4e606d33ac84fe3968b69875aa1d4 /src/IniFile.h | |
parent | Generate cacti and sugarcane with different heights (#4137) (diff) | |
download | cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar.gz cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar.bz2 cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar.lz cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar.xz cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.tar.zst cuberite-b9fdaf8a942ea2f79e48e3f735ba8916f3364e70.zip |
Diffstat (limited to '')
-rw-r--r-- | src/IniFile.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/IniFile.h b/src/IniFile.h index 3a5359d99..057691cba 100644 --- a/src/IniFile.h +++ b/src/IniFile.h @@ -42,14 +42,14 @@ private: struct key { - std::vector<AString> names; - std::vector<AString> values; - std::vector<AString> comments; + std::vector<AString> m_Names; + std::vector<AString> m_Values; + std::vector<AString> m_Comments; } ; - std::vector<key> keys; - std::vector<AString> names; - std::vector<AString> comments; + std::vector<key> m_Keys; + std::vector<AString> m_Names; + std::vector<AString> m_Comments; /** If the object is case-insensitive, returns s as lowercase; otherwise returns s as-is */ AString CheckCase(const AString & s) const; @@ -109,7 +109,7 @@ public: int FindValue(const int keyID, const AString & valuename) const; /** Returns number of keys currently in the ini */ - int GetNumKeys(void) const { return static_cast<int>(keys.size()); } + int GetNumKeys(void) const { return static_cast<int>(m_Keys.size()); } /** Add a key name */ int AddKeyName(const AString & keyname) override; @@ -184,7 +184,7 @@ public: // Header comments are those comments before the first key. /** Returns the number of header comments */ - int GetNumHeaderComments(void) {return static_cast<int>(comments.size());} + int GetNumHeaderComments(void) {return static_cast<int>(m_Comments.size());} /** Adds a header comment */ void AddHeaderComment(const AString & comment); @@ -196,7 +196,7 @@ public: bool DeleteHeaderComment(int commentID); /** Deletes all header comments */ - void DeleteHeaderComments(void) {comments.clear();} + void DeleteHeaderComments(void) {m_Comments.clear();} // Key comment functions. |