From 14cfff500e93f0d6cbf8412065feea85c01ea81d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Jul 2021 13:18:49 +0200 Subject: Pass context and resource string down to boost::locale separately because this is often on a hot path, and we can avoid the splitting and joining of strings like this. Change-Id: Ia36047209368ca53431178c2e8723a18cfe8260a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119220 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/styfitem.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/sfx2/styfitem.hxx') diff --git a/include/sfx2/styfitem.hxx b/include/sfx2/styfitem.hxx index dc939342689f..dc2efd88cf85 100644 --- a/include/sfx2/styfitem.hxx +++ b/include/sfx2/styfitem.hxx @@ -23,6 +23,7 @@ #include #include #include +#include #include struct SFX2_DLLPUBLIC SfxFilterTuple @@ -46,7 +47,7 @@ class SFX2_DLLPUBLIC SfxStyleFamilyItem SfxStyleFilter aFilterList; public: - SfxStyleFamilyItem(SfxStyleFamily nFamily, const OUString &rName, const OUString& rImage, const std::pair* pStringArray, const std::locale& rLocale); + SfxStyleFamilyItem(SfxStyleFamily nFamily, const OUString &rName, const OUString& rImage, const std::pair* pStringArray, const std::locale& rLocale); const OUString& GetText() const { return aText; } SfxStyleFamily GetFamily() const { return nFamily; } -- cgit