From 3746e040e71cab4425deba937ca2d993801a9132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20Gunne=20Lindstr=C3=B6m?= Date: Wed, 11 Dec 2024 15:06:41 +0100 Subject: [PATCH] squash this, minor fixes --- lib/cppcheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 8e8167242b49..3eda486dd96d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1422,11 +1422,11 @@ void CppCheck::executeAddons(const std::string& dumpFile, const FileWithDetails& // Split a string into a constant number of parts template static bool staticSplit(const std::string &str, char delim, std::array &substrs) { - std::size_t i, prev, pos = 0; + std::size_t i, pos = 0; for (i = 0; pos < str.length(); i++) { if (i == N) return false; - prev = pos; + std::size_t prev = pos; pos = str.find(delim, pos); if (pos == std::string::npos) pos = str.length();