diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-06-13 22:11:14 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-06-13 22:11:36 +0200 |
commit | f52a86b4592ccd441c76f7d26ecbce235dd59b7f (patch) | |
tree | eaaa01d281590e992d5153de85509e70ee6c5164 /editeng | |
parent | 1ff3ab9235e32305c820af75b9677334c81d9899 (diff) |
cppcheck: fix several Prefer prefix ++/-- operators
Change-Id: Ie8ce0ebb9ec979575657a89ebbfe4d01142b04e5
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/lookuptree/Trie.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/lookuptree/Trie.cxx b/editeng/source/lookuptree/Trie.cxx index 30ee0be0769f..1b8eeb7c84a5 100644 --- a/editeng/source/lookuptree/Trie.cxx +++ b/editeng/source/lookuptree/Trie.cxx @@ -29,7 +29,7 @@ TrieNode::TrieNode(sal_Unicode aCharacter) : TrieNode::~TrieNode() { vector<TrieNode*>::iterator iNode; - for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++) + for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode) { delete *iNode; } @@ -68,7 +68,7 @@ TrieNode* TrieNode::findChild(sal_Unicode aInputCharacter) vector<TrieNode*>::iterator iNode; - for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++) + for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode) { TrieNode* pCurrent = *iNode; if ( pCurrent->mCharacter == aInputCharacter ) @@ -96,7 +96,7 @@ void TrieNode::collectSuggestions(OUString sPath, vector<OUString>& rSuggestionL // traverse nodes for other characters vector<TrieNode*>::iterator iNode; - for(iNode = mChildren.begin(); iNode != mChildren.end(); iNode++) + for(iNode = mChildren.begin(); iNode != mChildren.end(); ++iNode) { TrieNode* pCurrent = *iNode; if (pCurrent != NULL) |