summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-18 13:51:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-18 18:25:59 +0200
commit270c04bd68cdb154ea1e74a307a5cbb6e81fb1a6 (patch)
tree9425b14afcd23ebc9ec8a5ce3a42e32aa11e17cd /i18npool/inc
parent0685678da0994103b14b9417c52310bd40e21102 (diff)
remove some allocations
where we could be calling static methods Change-Id: I9efef083e6ff307441fb36c19eac9134d960edec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122300 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/nativenumbersupplier.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx
index e1ea81627b3a..1f3e613caa62 100644
--- a/i18npool/inc/nativenumbersupplier.hxx
+++ b/i18npool/inc/nativenumbersupplier.hxx
@@ -44,8 +44,8 @@ public:
virtual OUString SAL_CALL getNativeNumberString( const OUString& aNumberString,
const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode ) override;
- virtual sal_Bool SAL_CALL isValidNatNum( const css::lang::Locale& aLocale,
- sal_Int16 nNativeNumberMode ) override;
+ virtual sal_Bool SAL_CALL isValidNatNum( const css::lang::Locale& rLocale,
+ sal_Int16 nNativeNumberMode ) override { return isValidNatNumImpl(rLocale, nNativeNumberMode); }
virtual css::i18n::NativeNumberXmlAttributes SAL_CALL convertToXmlAttributes(
const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode ) override;
@@ -71,10 +71,12 @@ public:
css::uno::Sequence<sal_Int32>* pOffset,
const OUString& rNativeNumberParams = OUString());
/// @throws css::uno::RuntimeException
- sal_Unicode getNativeNumberChar( const sal_Unicode inChar,
+ static sal_Unicode getNativeNumberChar( const sal_Unicode inChar,
const css::lang::Locale& aLocale, sal_Int16 nNativeNumberMode ) ;
private:
+ static bool isValidNatNumImpl( const css::lang::Locale& aLocale,
+ sal_Int16 nNativeNumberMode );
css::lang::Locale aLocale;
mutable css::uno::Reference< css::i18n::XCharacterClassification > xCharClass;
};