From 63fc008870c7c070c8e30b022aeb314e882ca8d2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 18 Sep 2021 12:03:45 +0200 Subject: cid#1491946 and cid#1491949 deference before null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit after commit c7551e8a46e2f9f8142aa7921a0494221ae096e8 Author: Noel Grandin Date: Thu Sep 16 10:36:48 2021 +0200 speedup CharacterClassificationImpl::toUpper Change-Id: If09857f89a4fa7de56831ea16d0b3ec8c50cfaf8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122295 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- i18npool/inc/nativenumbersupplier.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'i18npool/inc') diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx index c452cb4306df..e1ea81627b3a 100644 --- a/i18npool/inc/nativenumbersupplier.hxx +++ b/i18npool/inc/nativenumbersupplier.hxx @@ -38,7 +38,7 @@ class NativeNumberSupplierService final : public cppu::WeakImplHelper > { public: - NativeNumberSupplierService(bool _useOffset = false) : useOffset(_useOffset) {} + NativeNumberSupplierService() {} // Methods virtual OUString SAL_CALL getNativeNumberString( const OUString& aNumberString, @@ -68,7 +68,7 @@ public: OUString getNativeNumberString(const OUString& rNumberString, const css::lang::Locale& rLocale, sal_Int16 nNativeNumberMode, - css::uno::Sequence& offset, + css::uno::Sequence* pOffset, const OUString& rNativeNumberParams = OUString()); /// @throws css::uno::RuntimeException sal_Unicode getNativeNumberChar( const sal_Unicode inChar, @@ -76,7 +76,6 @@ public: private: css::lang::Locale aLocale; - bool useOffset; mutable css::uno::Reference< css::i18n::XCharacterClassification > xCharClass; }; -- cgit