diff --git a/Directory.cpp b/Directory.cpp index 082cc60..44a942f 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -19,7 +19,7 @@ namespace fs size_t Directory::getSize() const { size_t sum{}; - for (auto& [k, v] : m_children) + for (const auto& [k, v] : m_children) { sum += v->getSize(); } diff --git a/Tokenizer.cpp b/Tokenizer.cpp index e1c4814..e6a1562 100644 --- a/Tokenizer.cpp +++ b/Tokenizer.cpp @@ -68,7 +68,7 @@ namespace shell if (isBetweenQuotes) { - return false; + return false; // skipcq: CXX-C2015 } return true; } diff --git a/UserManager.cpp b/UserManager.cpp index 3bbd898..34c17a8 100644 --- a/UserManager.cpp +++ b/UserManager.cpp @@ -201,7 +201,7 @@ namespace fs << "> "; if (auto line = Utils::getLine()) { - password = Utils::trim(line.value()); + password = Utils::trim(line.value()); // skipcq: CXX-A1004 isValid = true; } else if (Utils::promptToExitLoop())