diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-18 12:03:45 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-18 13:01:19 +0200 |
commit | 63fc008870c7c070c8e30b022aeb314e882ca8d2 (patch) | |
tree | b3227ff96b5397eb7ce77ef2b07d58ff1e89f6f1 /i18npool/inc | |
parent | c2e6a068c112f4c5866b6371d02362bd71f903a3 (diff) |
cid#1491946 and cid#1491949 deference before null check
after
commit c7551e8a46e2f9f8142aa7921a0494221ae096e8
Author: Noel Grandin <noel.grandin@collabora.co.uk>
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 <caolanm@redhat.com>
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/nativenumbersupplier.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
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<sal_Int32>& offset, + css::uno::Sequence<sal_Int32>* 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; }; |