summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-02-26 20:17:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-26 19:50:19 +0000
commitbee4402c7ed97f3373f93eb7939940557bd59912 (patch)
treea136d87fffdbae92b0259017aefa760e0b5e0377 /formula
parent639d72e13e57cfffc857af1b9b7034c97f1f355d (diff)
no need to hold SvtSysLocale by std::unique_ptr
allocate it inline, it is only one pointer in size Change-Id: I736f3322784897054993fbddd423f36357f817c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147741 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/FormulaHelper.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx
index 85799c40ecc2..58d474de8015 100644
--- a/formula/source/ui/dlg/FormulaHelper.cxx
+++ b/formula/source/ui/dlg/FormulaHelper.cxx
@@ -61,15 +61,14 @@ namespace formula
#define FUNC_NOTFOUND -1
FormulaHelper::FormulaHelper(const IFunctionManager* _pFunctionManager)
- :m_pSysLocale(new SvtSysLocale)
- ,m_pFunctionManager(_pFunctionManager)
+ :m_pFunctionManager(_pFunctionManager)
,open(_pFunctionManager->getSingleToken(IFunctionManager::eOk))
,close(_pFunctionManager->getSingleToken(IFunctionManager::eClose))
,sep(_pFunctionManager->getSingleToken(IFunctionManager::eSep))
,arrayOpen(_pFunctionManager->getSingleToken(IFunctionManager::eArrayOpen))
,arrayClose(_pFunctionManager->getSingleToken(IFunctionManager::eArrayClose))
{
- m_pCharClass = &m_pSysLocale->GetCharClass();
+ m_pCharClass = &m_aSysLocale.GetCharClass();
}
sal_Int32 FormulaHelper::GetCategoryCount() const