Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1941)

Unified Diff: Source/core/xml/XPathFunctions.cpp

Issue 141273002: Code problems detected by cppcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a few more fixes Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XPathFunctions.cpp
diff --git a/Source/core/xml/XPathFunctions.cpp b/Source/core/xml/XPathFunctions.cpp
index b70da1fe627c34e313d0d453dea51e1737780614..c3a743355fcbf548815ed5eece9f4d5335ae5de9 100644
--- a/Source/core/xml/XPathFunctions.cpp
+++ b/Source/core/xml/XPathFunctions.cpp
@@ -300,7 +300,7 @@ void Function::setArguments(Vector<OwnPtr<Expression> >& args)
setIsContextNodeSensitive(false);
Vector<OwnPtr<Expression> >::iterator end = args.end();
- for (Vector<OwnPtr<Expression> >::iterator it = args.begin(); it != end; it++)
+ for (Vector<OwnPtr<Expression> >::iterator it = args.begin(); it != end; ++it)
addSubExpression(it->release());
}

Powered by Google App Engine
This is Rietveld 408576698