diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-12-07 16:18:49 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-12-08 19:18:55 +0100 |
commit | 1da003fed409d0a94410bcd93fe110322a50f6f8 (patch) | |
tree | 35bfb85a2778711f54cdcbe3f2165bd3e5498887 /sfx2/source/notebookbar/SfxNotebookBar.cxx | |
parent | 34a285a05f7f4a315661c1267515effb8c0c812a (diff) |
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>
Diffstat (limited to 'sfx2/source/notebookbar/SfxNotebookBar.cxx')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 2 |
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); |