From 359e0b47a0f96ffa595a0c38a5e5318d797812fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Mar 2016 08:09:35 +0200 Subject: loplugin:unuseddefaultparams Change-Id: Ia414f7845425ef73859ed04853378e96cc738795 Reviewed-on: https://gerrit.libreoffice.org/22971 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/inc/regexpmap.hxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'ucb') 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; } -- cgit