summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index dfa081b62cd2..cb610a612807 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -639,10 +639,8 @@ namespace svx
void HangulHanjaConversionDialog::FillSuggestions( const css::uno::Sequence< OUString >& _rSuggestions )
{
m_pSuggestions->Clear();
- const OUString* pSuggestions = _rSuggestions.getConstArray();
- const OUString* pSuggestionsEnd = _rSuggestions.getConstArray() + _rSuggestions.getLength();
- while ( pSuggestions != pSuggestionsEnd )
- m_pSuggestions->InsertEntry( *pSuggestions++ );
+ for ( auto const & suggestion : _rSuggestions )
+ m_pSuggestions->InsertEntry( suggestion );
// select the first suggestion, and fill in the suggestion edit field
OUString sFirstSuggestion;