Skip to content

Commit

Permalink
squash this, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Dec 11, 2024
1 parent f2d34c3 commit 3746e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cppcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1422,11 +1422,11 @@ void CppCheck::executeAddons(const std::string& dumpFile, const FileWithDetails&
// Split a string into a constant number of parts
template<std::size_t N>
static bool staticSplit(const std::string &str, char delim, std::array<std::string, N> &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();
Expand Down

0 comments on commit 3746e04

Please sign in to comment.