summaryrefslogtreecommitdiffstats
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index a5e6d61125ca..dd53979ebbc1 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1425,18 +1425,15 @@ namespace frm
::std::set< sal_Int16 > aSelectionSet;
// find the selection entries in our item list
- const OUString* pSelectEntries = aSelectEntries.getArray();
- const OUString* pSelectEntriesEnd = pSelectEntries + aSelectEntries.getLength();
- while ( pSelectEntries != pSelectEntriesEnd )
+ for ( OUString const & selectEntry : aSelectEntries )
{
int idx = 0;
for(const OUString& s : getStringItemList())
{
- if (s==*pSelectEntries)
+ if (s==selectEntry)
aSelectionSet.insert(idx);
++idx;
}
- ++pSelectEntries;
}
// copy the indexes to the sequence