From 040d455cae75d961f01b39afe0bfb4b031345c5c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Mar 2017 09:37:41 +0100 Subject: cid#1402150: Try to silence false positive report Change-Id: Ied2b1a8b0eb0aa9e7e48d1445677c8536f6388c8 --- cui/source/options/treeopt.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cui') 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; } } -- cgit