summaryrefslogtreecommitdiff
path: root/ucb/source/inc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-11-09 11:00:44 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2017-11-09 13:41:15 +0100
commit9b4d079d578dcb5cdc173e44604e078267ea9840 (patch)
treeeeb625e1804248193f88aa8cd29a3190dc7c73dd /ucb/source/inc
parenta8a3fa2e4d24e8ea10bc4fee352fd4d7b82b2c79 (diff)
RegexpMap::map: use range-based for
Change-Id: I90ae184e3400f7a35419a705c62c482932065b0f Reviewed-on: https://gerrit.libreoffice.org/44524 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'ucb/source/inc')
-rw-r--r--ucb/source/inc/regexpmap.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/ucb/source/inc/regexpmap.hxx b/ucb/source/inc/regexpmap.hxx
index 41f02cfb4277..665c6aa4f29f 100644
--- a/ucb/source/inc/regexpmap.hxx
+++ b/ucb/source/inc/regexpmap.hxx
@@ -519,11 +519,9 @@ Val const * RegexpMap< Val >::map(rtl::OUString const & rString) const
{
std::vector< Entry<Val> > const & rTheList = m_aImpl.m_aList[n];
- typename std::vector< Entry<Val> >::const_iterator aEnd(rTheList.end());
- for (typename std::vector< Entry<Val> >::const_iterator aIt(rTheList.begin()); aIt != aEnd;
- ++aIt)
- if (aIt->m_aRegexp.matches(rString))
- return &aIt->m_aValue;
+ for (auto const & rItem : rTheList)
+ if (rItem.m_aRegexp.matches(rString))
+ return &rItem.m_aValue;
}
if (m_aImpl.m_pDefault
&& m_aImpl.m_pDefault->m_aRegexp.matches(rString))