Skip to content

Commit

Permalink
Remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Dec 8, 2024
1 parent f62ed45 commit 6c5e347
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2773,12 +2773,10 @@ namespace i18n_check
std::wregex positionalRegex{ L"[%][L]?[0-9]{1,}" };
std::wstring_view::const_iterator searchStart{ resource.cbegin() };
std::match_results<std::wstring_view::const_iterator> res;
size_t commandPosition{ 0 };
size_t previousLength{ 0 };
while (std::regex_search(searchStart, resource.cend(), res, positionalRegex))
{
searchStart += res.position() + res.length();
commandPosition += res.position() + previousLength;
previousLength = res.length();

results.push_back(res.str(0));
Expand Down

0 comments on commit 6c5e347

Please sign in to comment.