summaryrefslogtreecommitdiff
path: root/ucb/source/inc
diff options
context:
space:
mode:
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))