summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-23 11:04:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-23 15:26:12 +0200
commit9c046328596e21ce26ed59e215ba2ba5202361e2 (patch)
treea9ae71a0ef6f096cec939790dbe804fc7e7bf900 /unotools/source
parent0a1bfe1e3fb298d7d7e2cfd85887d430cce59238 (diff)
cache ref to GlobalEventConfig
so we avoid repeated allocation Change-Id: I9541c52e73878cf515c9159477bd3d2fda9e0078 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134803 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/config/eventcfg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 8cd883e0a0be..a92618a81f56 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -374,7 +374,7 @@ OUString GlobalEventConfig::GetEventName( GlobalEventId nIndex )
{
if (utl::ConfigManager::IsFuzzing())
return OUString();
- rtl::Reference<GlobalEventConfig> createImpl(new GlobalEventConfig);
+ static rtl::Reference<GlobalEventConfig> createImpl(new GlobalEventConfig);
return GlobalEventConfig::m_pImpl->GetEventName( nIndex );
}