diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-01 09:08:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-01 12:12:46 +0200 |
commit | 5ed9f4638e1ff12b3246a66ffee8dd9dd74b9693 (patch) | |
tree | 94bc60789104c860753697c0e55b9427aa62f97d /svx/source | |
parent | 346c4104c3ceac9d4f61e2e886d38661fa917742 (diff) |
loplugin:unusedfields
Change-Id: Icd1dc03c2f783e11e3e52038a8ae9f19705561c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103746
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/gallery2/galleryobjectcollection.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/gallery2/galleryobjectcollection.cxx b/svx/source/gallery2/galleryobjectcollection.cxx index 4082852ce371..f48a342ba5ed 100644 --- a/svx/source/gallery2/galleryobjectcollection.cxx +++ b/svx/source/gallery2/galleryobjectcollection.cxx @@ -49,11 +49,13 @@ const GalleryObject* GalleryObjectCollection::getForPosition(sal_uInt32 nPos) co return nullptr; } +const INetURLObject g_aInvalidURL; + const INetURLObject& GalleryObjectCollection::getURLForPosition(sal_uInt32 nPos) const { if (nPos < size()) return get(nPos)->getURL(); - return m_aInvalidURL; + return g_aInvalidURL; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |