From 5ef182586ae2019fa6f6a59dae1b41b2225665bf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Aug 2021 20:53:07 +0200 Subject: no need to allocate the lookupTableItem separately Change-Id: I43919a002df01c6329ee483bf69f04669cdce1f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120293 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18npool/inc/characterclassificationImpl.hxx | 5 +++-- i18npool/inc/collatorImpl.hxx | 5 +++-- i18npool/inc/inputsequencechecker.hxx | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'i18npool/inc') diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx index 34723ef74123..4e03a54fd3be 100644 --- a/i18npool/inc/characterclassificationImpl.hxx +++ b/i18npool/inc/characterclassificationImpl.hxx @@ -23,6 +23,7 @@ #include #include #include +#include #include namespace com::sun::star::uno { class XComponentContext; } @@ -81,8 +82,8 @@ private: aLocale.Variant == rLocale.Variant; }; }; - std::vector> lookupTable; - lookupTableItem *cachedItem; + std::vector lookupTable; + std::optional cachedItem; css::uno::Reference < css::uno::XComponentContext > m_xContext; css::uno::Reference < XCharacterClassification > xUCI; diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx index 14a4489a256a..c1068638d8bc 100644 --- a/i18npool/inc/collatorImpl.hxx +++ b/i18npool/inc/collatorImpl.hxx @@ -27,6 +27,7 @@ #include #include +#include namespace com::sun::star::i18n { class XLocaleData5; } namespace com::sun::star::uno { class XComponentContext; } @@ -89,8 +90,8 @@ private: algorithm == _algorithm; } }; - std::vector> lookupTable; - lookupTableItem * cachedItem; + std::vector lookupTable; + std::optional cachedItem; // Service Factory css::uno::Reference < css::uno::XComponentContext > m_xContext; diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx index 52963b3be171..eff426f5caa3 100644 --- a/i18npool/inc/inputsequencechecker.hxx +++ b/i18npool/inc/inputsequencechecker.hxx @@ -25,6 +25,7 @@ #include #include +#include namespace com::sun::star::uno { class XComponentContext; } @@ -63,8 +64,8 @@ private: const char* aLanguage; css::uno::Reference < css::i18n::XExtendedInputSequenceChecker > xISC; }; - std::vector> lookupTable; - lookupTableItem *cachedItem; + std::vector lookupTable; + std::optional cachedItem; css::uno::Reference < css::uno::XComponentContext > m_xContext; -- cgit