summaryrefslogtreecommitdiff
path: root/sfx2/source/notebookbar
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 12:08:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 14:56:06 +0200
commit46da549a68003ef5a35aedf4621482cb2b54e930 (patch)
treeb60d2081c076545482ff6bb33bcb6c0d1d2d24c2 /sfx2/source/notebookbar
parent71303c5c23bdb385e9f12c0dbe5d2a0818b836ec (diff)
loplugin:reducevarscope in sfx2
Change-Id: I63ee19bfe7ad01ff4ad8c941bffadd9406101c6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103678 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notebookbar')
-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 bacaf48e56f4..4c5ccbe8a063 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -63,9 +63,9 @@ static void NotebookbarAddonValues(
bool isBigImage = true;
for (const auto& rProp : rExtensionVal)
{
- OUString sImage;
if (rProp.Name == MERGE_NOTEBOOKBAR_URL)
{
+ OUString sImage;
rProp.Value >>= sImage;
aImage = Image(framework::AddonsOptions().GetImageFromURL(sImage, isBigImage));
}