summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 15:54:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-20 18:37:47 +0200
commit50a6041bfac60ab03ec896bd638504524853300d (patch)
tree0178900643552698db356a0e3c70c94239ad5577 /vcl/source/image
parent102a94c9de3c8c4d1326022dd14a300d6b72e222 (diff)
loplugin:constvars in vcl
Change-Id: Ic454a4d9520992eaecef4b64ec73d49e52ffcc2c Reviewed-on: https://gerrit.libreoffice.org/77828 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImplImageTree.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index d90160c516eb..6d85500b2884 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -211,7 +211,7 @@ std::vector<OUString> ImplImageTree::getPaths(OUString const & name, LanguageTag
sal_Int32 pos = name.lastIndexOf('/');
if (pos != -1)
{
- for (OUString& rFallback : rLanguageTag.getFallbackStrings(true))
+ for (const OUString& rFallback : rLanguageTag.getFallbackStrings(true))
{
OUString aFallbackName = getNameNoExtension(getRealImageName(createPath(name, pos, rFallback)));
sPaths.emplace_back(aFallbackName + ".png");
@@ -243,7 +243,7 @@ OUString ImplImageTree::getImageUrl(OUString const & rName, OUString const & rSt
LanguageTag aLanguageTag(rLang);
- for (OUString& rPath: getPaths(rName, aLanguageTag))
+ for (const OUString& rPath: getPaths(rName, aLanguageTag))
{
if (rNameAccess->hasByName(rPath))
{
@@ -282,7 +282,7 @@ std::shared_ptr<SvMemoryStream> ImplImageTree::getImageStream(OUString const & r
LanguageTag aLanguageTag(rLang);
- for (OUString& rPath: getPaths(rName, aLanguageTag))
+ for (const OUString& rPath: getPaths(rName, aLanguageTag))
{
if (rNameAccess->hasByName(rPath))
{