From 678e3271d43c2677c23858d90232ce38aa597d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 16 Jun 2018 23:11:45 +0200 Subject: [PATCH] Rename private flags member to mFlags --- lib/symboldatabase.cpp | 2 +- lib/symboldatabase.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 8002807d9..40a93583e 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1722,7 +1722,7 @@ Function::Function(const Tokenizer *mTokenizer, const Token *tok, const Scope *s access(Public), noexceptArg(nullptr), throwArg(nullptr), - flags(0) + mFlags(0) { // operator function if (tokenDef->isOperatorKeyword()) { diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 475d7d9c4..d6c1fbd09 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -681,7 +681,7 @@ class CPPCHECKLIB Function { * @return true if flag set or false in flag not set */ bool getFlag(unsigned int flag) const { - return ((flags & flag) != 0); + return ((mFlags & flag) != 0); } /** @@ -690,7 +690,7 @@ class CPPCHECKLIB Function { * @param state new state of flag */ void setFlag(unsigned int flag, bool state) { - flags = state ? flags | flag : flags & ~flag; + mFlags = state ? mFlags | flag : mFlags & ~flag; } public: @@ -846,7 +846,7 @@ private: /** Recursively determine if this function overrides a virtual method in a base class */ const Function * getOverridenFunctionRecursive(const ::Type* baseType, bool *foundAllBaseClasses) const; - unsigned int flags; + unsigned int mFlags; void isInline(bool state) { setFlag(fIsInline, state);