From b9fdaf8a942ea2f79e48e3f735ba8916f3364e70 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 6 May 2018 19:07:34 +0200 Subject: Use clang-tidy to check more code conventions (#4214) * Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164 --- src/IniFile.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/IniFile.h') 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 names; - std::vector values; - std::vector comments; + std::vector m_Names; + std::vector m_Values; + std::vector m_Comments; } ; - std::vector keys; - std::vector names; - std::vector comments; + std::vector m_Keys; + std::vector m_Names; + std::vector 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(keys.size()); } + int GetNumKeys(void) const { return static_cast(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(comments.size());} + int GetNumHeaderComments(void) {return static_cast(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. -- cgit v1.2.3