From d6dae278035b6c59f1edc56fcd4812dc2a1e2fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 5 Jan 2018 17:29:40 +0100 Subject: [PATCH] Fixed Cppcheck postincrement warnings --- lib/templatesimplifier.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 80cc3c220..c098190ff 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -830,10 +830,10 @@ void TemplateSimplifier::simplifyTemplateAliases(std::listend()) continue; - if (it == it1) - it1++; std::list::iterator next = it; - next++; + ++next; + if (it == it1) + it1 = next; templateInstantiations->erase(it,next); }