Skip to content

Commit

Permalink
templatesimplifier.cpp: fixed unreadVariable selfcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Dec 17, 2024
1 parent 9c2fe70 commit bdaae9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templatesimplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3391,7 +3391,7 @@ void TemplateSimplifier::replaceTemplateUsage(
if (tok->isName() && tok->templateSimplifierPointers() && !tok->templateSimplifierPointers()->empty()) {
for (auto ti = mTemplateInstantiations.cbegin(); ti != mTemplateInstantiations.cend();) {
if (ti->token() == tok) {
ti = mTemplateInstantiations.erase(ti);
mTemplateInstantiations.erase(ti);
break;
}
++ti;
Expand Down

0 comments on commit bdaae9c

Please sign in to comment.