summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 13:27:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:35:23 +0200
commitab9b38a4064141705aa3a3de9a5d73b465ad3af3 (patch)
tree888fcc6b517c44d77e2d297c13ee84fb487dd7a7 /cui
parent13341ffa49d58f313a05edae4f4f04c215658e9f (diff)
use more begin()/end() for Sequence
Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/macropg.cxx4
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx6
2 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index d3b68e626951..d171411c72d2 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -507,8 +507,8 @@ void SvxMacroTabPage_::DisplayAppEvents( bool appEvents)
Sequence< OUString > eventNames = nameReplace->getElementNames();
std::set< OUString > aEventNamesCache;
std::copy(
- eventNames.getConstArray(),
- eventNames.getConstArray() + eventNames.getLength(),
+ eventNames.begin(),
+ eventNames.end(),
std::insert_iterator< std::set< OUString > >( aEventNamesCache, aEventNamesCache.end() )
);
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;