diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-03-05 11:23:38 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-03-07 15:37:22 +0100 |
commit | 4256c764aee0777770466115a97420d9b55c23ac (patch) | |
tree | 9452b0dc5c84355826d070ad3eccba498ef9c5e8 /include/svx | |
parent | 58c6a36bfcc853ca9da81fbc2d071fa50585655b (diff) |
do not pass XComponentContext to officecfg::...::get() calls
It's used only for the ConfigurationWrapper singleton, so it's used
only the first time and then ignored. It also causes calls to
comphelper::getProcessComponentContext() for every single invocation
despite the value not being needed, and the calls may not be cheap
(it's ~5% CPU during ODS save because relatively frequent calls
to officecfg::Office::Common::Save::ODF::DefaultVersion::get()).
Change-Id: I02c17a1a9cb498aeef220ddd5a0bde5523cb0ffb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131056
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/PaletteManager.hxx | 1 | ||||
-rw-r--r-- | include/svx/charmap.hxx | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx index d67623555157..4e45df0012e6 100644 --- a/include/svx/PaletteManager.hxx +++ b/include/svx/PaletteManager.hxx @@ -47,7 +47,6 @@ class SVXCORE_DLLPUBLIC PaletteManager std::vector<std::unique_ptr<Palette>> m_Palettes; ColorSelectFunction maColorSelectFunction; - css::uno::Reference < css::uno::XComponentContext > m_context; std::unique_ptr<SvColorDialog> m_pColorDlg; public: diff --git a/include/svx/charmap.hxx b/include/svx/charmap.hxx index 512b561ee997..faf5aea9b7e1 100644 --- a/include/svx/charmap.hxx +++ b/include/svx/charmap.hxx @@ -128,7 +128,6 @@ protected: std::deque<OUString> maFavCharFontList; rtl::Reference<svx::SvxShowCharSetAcc> m_xAccessible; - uno::Reference< uno::XComponentContext > mxContext; tools::Long nX; tools::Long nY; tools::Long m_nXGap; |