From bea6b321577a5409a2e57abe9dce501f15e22818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jun 2018 08:21:05 +0200 Subject: [PATCH] Renamed _enabled --- lib/settings.cpp | 20 ++++++++++---------- lib/settings.h | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index c58f55631..38c8c762f 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -23,7 +23,7 @@ bool Settings::_terminated; Settings::Settings() - : _enabled(0), + : mEnabled(0), debug(false), debugnormal(false), debugwarnings(false), @@ -72,25 +72,25 @@ std::string Settings::addEnabled(const std::string &str) } if (str == "all") { - _enabled |= WARNING | STYLE | PERFORMANCE | PORTABILITY | INFORMATION | UNUSED_FUNCTION | MISSING_INCLUDE; + mEnabled |= WARNING | STYLE | PERFORMANCE | PORTABILITY | INFORMATION | UNUSED_FUNCTION | MISSING_INCLUDE; } else if (str == "warning") { - _enabled |= WARNING; + mEnabled |= WARNING; } else if (str == "style") { - _enabled |= STYLE; + mEnabled |= STYLE; } else if (str == "performance") { - _enabled |= PERFORMANCE; + mEnabled |= PERFORMANCE; } else if (str == "portability") { - _enabled |= PORTABILITY; + mEnabled |= PORTABILITY; } else if (str == "information") { - _enabled |= INFORMATION | MISSING_INCLUDE; + mEnabled |= INFORMATION | MISSING_INCLUDE; } else if (str == "unusedFunction") { - _enabled |= UNUSED_FUNCTION; + mEnabled |= UNUSED_FUNCTION; } else if (str == "missingInclude") { - _enabled |= MISSING_INCLUDE; + mEnabled |= MISSING_INCLUDE; } #ifdef CHECK_INTERNAL else if (str == "internal") { - _enabled |= INTERNAL; + mEnabled |= INTERNAL; } #endif else { diff --git a/lib/settings.h b/lib/settings.h index 0dc748657..43779773f 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -62,7 +62,7 @@ public: private: /** @brief enable extra checks by id */ - int _enabled; + int mEnabled; /** @brief terminate checking */ static bool _terminated; @@ -185,7 +185,7 @@ public: * @return true if the check is enabled. */ bool isEnabled(EnabledGroup group) const { - return (_enabled & group) == group; + return (mEnabled & group) == group; } /** @@ -212,7 +212,7 @@ public: * @brief Disables all severities, except from error. */ void clearEnabled() { - _enabled = 0; + mEnabled = 0; } enum Language {