diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-07 08:09:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-07 09:16:00 +0000 |
commit | 359e0b47a0f96ffa595a0c38a5e5318d797812fe (patch) | |
tree | 3695eb961668945dda469fc659337cbdd8c89520 /ucb | |
parent | cc84aaf70ac56092b32d1d329143eca0550dce12 (diff) |
loplugin:unuseddefaultparams
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795
Reviewed-on: https://gerrit.libreoffice.org/22971
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/inc/regexpmap.hxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ucb/source/inc/regexpmap.hxx b/ucb/source/inc/regexpmap.hxx index b8e6bced97ef..e4d446e5f44e 100644 --- a/ucb/source/inc/regexpmap.hxx +++ b/ucb/source/inc/regexpmap.hxx @@ -394,9 +394,7 @@ public: size_type size() const; - Val const * map(OUString const & rString, - OUString * pTranslation = nullptr) - const; + Val const * map(OUString const & rString) const; private: RegexpMapImpl< Val > * m_pImpl; @@ -545,8 +543,7 @@ typename RegexpMap< Val >::size_type RegexpMap< Val >::size() const } template< typename Val > -Val const * RegexpMap< Val >::map(rtl::OUString const & rString, - rtl::OUString * pTranslation) const +Val const * RegexpMap< Val >::map(rtl::OUString const & rString) const { for (int n = Regexp::KIND_DOMAIN; n >= Regexp::KIND_PREFIX; --n) { @@ -555,12 +552,11 @@ Val const * RegexpMap< Val >::map(rtl::OUString const & rString, typename List< Val >::const_iterator aEnd(rTheList.end()); for (typename List< Val >::const_iterator aIt(rTheList.begin()); aIt != aEnd; ++aIt) - if (aIt->m_aRegexp.matches(rString, pTranslation, nullptr)) + if (aIt->m_aRegexp.matches(rString, nullptr, nullptr)) return &aIt->m_aValue; } if (m_pImpl->m_pDefault - && m_pImpl->m_pDefault->m_aRegexp.matches(rString, pTranslation, - nullptr)) + && m_pImpl->m_pDefault->m_aRegexp.matches(rString, nullptr, nullptr)) return &m_pImpl->m_pDefault->m_aValue; return 0; } |