summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/treeopt.cxx6
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;
}
}