Fixed self-check. Naming conventions

This commit is contained in:
Daniel Marjamäki 2021-02-25 10:54:13 +01:00
parent 77474d0ccd
commit 0988448319
1 changed files with 7 additions and 7 deletions

View File

@ -46,16 +46,16 @@ namespace ValueFlow {
template<typename T> template<typename T>
class SimpleEnableGroup { class SimpleEnableGroup {
uint32_t flags = 0; uint32_t mFlags = 0;
public: public:
uint32_t intValue() const { uint32_t intValue() const {
return flags; return mFlags;
} }
void clear() { void clear() {
flags = 0; mFlags = 0;
} }
void fill() { void fill() {
flags = 0xFFFFFFFF; mFlags = 0xFFFFFFFF;
} }
void setEnabledAll(bool enabled) { void setEnabledAll(bool enabled) {
if (enabled) if (enabled)
@ -64,13 +64,13 @@ public:
clear(); clear();
} }
bool isEnabled(T flag) const { bool isEnabled(T flag) const {
return (flags & (1U << (uint32_t)flag)) != 0; return (mFlags & (1U << (uint32_t)flag)) != 0;
} }
void enable(T flag) { void enable(T flag) {
flags |= (1U << (uint32_t)flag); mFlags |= (1U << (uint32_t)flag);
} }
void disable(T flag) { void disable(T flag) {
flags &= ~(1U << (uint32_t)flag); mFlags &= ~(1U << (uint32_t)flag);
} }
void setEnabled(T flag, bool enabled) { void setEnabled(T flag, bool enabled) {
if (enabled) if (enabled)