summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-20 18:37:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-21 08:30:47 +0200
commit751f4d4428339b508abb5ee3c1804e63f0cfd593 (patch)
tree144a929607a00d7e64f78530797585d6be2b3a5f /i18npool
parentbb7b0511bbb6d2237b7b765c31727324b4183a85 (diff)
loplugin:constantparam
Change-Id: Id5144e95ac0120b3125258cdde46e4f7f6e1690b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99109 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 648e55be3b07..936f1620ad73 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -578,15 +578,13 @@ static OUString lcl_formatArabicZero(sal_Int32 nNumber, sal_Int32 nLimit)
static
Any getPropertyByName( const Sequence<beans::PropertyValue>& aProperties,
- const char* name, bool bRequired )
+ const char* name )
{
auto pProp = std::find_if(aProperties.begin(), aProperties.end(),
[&name](const beans::PropertyValue& rProp) { return rProp.Name.equalsAscii(name); });
if (pProp != aProperties.end())
return pProp->Value;
- if(bRequired)
- throw IllegalArgumentException();
- return Any();
+ throw IllegalArgumentException();
}
//XNumberingFormatter
@@ -700,7 +698,7 @@ DefaultNumberingProvider::makeNumberingString( const Sequence<beans::PropertyVal
try {
const OUString &tmp = OUString::number( number );
OUString transliteration;
- getPropertyByName(aProperties, "Transliteration", true) >>= transliteration;
+ getPropertyByName(aProperties, "Transliteration") >>= transliteration;
if ( !translit )
translit = new TransliterationImpl(m_xContext);
translit->loadModuleByImplName(transliteration, aLocale);