summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-07 16:18:49 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-12-08 19:18:55 +0100
commit1da003fed409d0a94410bcd93fe110322a50f6f8 (patch)
tree35bfb85a2778711f54cdcbe3f2165bd3e5498887
parentdo not unnecessarily lock XLayoutManager for menubar changes (diff)
downloadcore-1da003fed409d0a94410bcd93fe110322a50f6f8.tar.gz
core-1da003fed409d0a94410bcd93fe110322a50f6f8.zip
do not repeatedly create a framework::AddonsOptions temporary
They are actually internally refcounted, so this doesn't make a difference, but it was confusing when profiling and seeing that it's a noticeable cost in SfxLokHelper::setView(). Change-Id: I6330fbdd2bc02718e633c3f7ab5c3da12039677e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126486 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--sfx2/source/notebookbar/SfxNotebookBar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index b4cd2cec4faf..e70c7a88bd55 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -65,7 +65,7 @@ static void NotebookbarAddonValues(
{
OUString sImage;
rProp.Value >>= sImage;
- aImage = Image(framework::AddonsOptions().GetImageFromURL(sImage, isBigImage));
+ aImage = Image(aAddonsItems.GetImageFromURL(sImage, isBigImage));
}
}
aImageValues.push_back(aImage);