From 0988448319f4c3382a878693697f70cfef892974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 Feb 2021 10:54:13 +0100 Subject: [PATCH] Fixed self-check. Naming conventions --- lib/settings.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/settings.h b/lib/settings.h index ba2173736..b3701d225 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -46,16 +46,16 @@ namespace ValueFlow { template class SimpleEnableGroup { - uint32_t flags = 0; + uint32_t mFlags = 0; public: uint32_t intValue() const { - return flags; + return mFlags; } void clear() { - flags = 0; + mFlags = 0; } void fill() { - flags = 0xFFFFFFFF; + mFlags = 0xFFFFFFFF; } void setEnabledAll(bool enabled) { if (enabled) @@ -64,13 +64,13 @@ public: clear(); } bool isEnabled(T flag) const { - return (flags & (1U << (uint32_t)flag)) != 0; + return (mFlags & (1U << (uint32_t)flag)) != 0; } void enable(T flag) { - flags |= (1U << (uint32_t)flag); + mFlags |= (1U << (uint32_t)flag); } void disable(T flag) { - flags &= ~(1U << (uint32_t)flag); + mFlags &= ~(1U << (uint32_t)flag); } void setEnabled(T flag, bool enabled) { if (enabled)