fix: redundant variable
This commit is contained in:
parent
e81c48f739
commit
56bace58b7
|
|
@ -13,8 +13,7 @@ public:
|
|||
return true;
|
||||
};
|
||||
|
||||
std::size_t pos = 0;
|
||||
for (std::size_t nextPos = goal.find(ch, pos); nextPos != std::string::npos; nextPos = goal.find(ch, pos = nextPos + 1))
|
||||
for (std::size_t nextPos = goal.find(ch, 0); nextPos != std::string::npos; nextPos = goal.find(ch, nextPos + 1))
|
||||
if (verify(nextPos))
|
||||
return true;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue