diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-10 09:37:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-10 09:37:41 +0100 |
commit | 040d455cae75d961f01b39afe0bfb4b031345c5c (patch) | |
tree | b8afc70f1fdbe88f894033b971d3e46af4696cee /cui | |
parent | a6df0c3434678dfe4f28d97cdb7a37248fb24d50 (diff) |
cid#1402150: Try to silence false positive report
Change-Id: Ied2b1a8b0eb0aa9e7e48d1445677c8536f6388c8
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/treeopt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 1831df92f243..7d7b2611a971 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1994,13 +1994,13 @@ VectorOfNodes OfaTreeOptionsDialog::LoadNodes( for ( auto const & i: pModule->m_aNodeList ) { OUString sNodeId = i->m_sId; - for ( VectorOfNodes::size_type j = 0; j < aNodeList.size(); ++j ) + for ( auto j = aNodeList.begin(); j != aNodeList.end(); ++j ) { - OptionsNode* pNode = aNodeList[j]; + OptionsNode* pNode = *j; if ( pNode->m_sId == sNodeId ) { aOutNodeList.push_back( pNode ); - aNodeList.erase( aNodeList.begin() + j ); + aNodeList.erase( j ); break; } } |