summaryrefslogtreecommitdiff
path: root/vcl/source/app/brand.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-12 10:06:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-13 08:09:28 +0000
commitf12b17867ef8fa2cfc2ddb7ecda9d7acc57cfa59 (patch)
tree3b0a89e34cfca550b38b92423a1de4b805d2c91c /vcl/source/app/brand.cxx
parent96fab0513215cc416e96e1b2089466afd0d2791c (diff)
clang-tidy modernize-loop-convert in vcl
Change-Id: I79e97a4826bfe3918de223cccf48646a1404f901 Reviewed-on: https://gerrit.libreoffice.org/24922 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/app/brand.cxx')
-rw-r--r--vcl/source/app/brand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/brand.cxx b/vcl/source/app/brand.cxx
index 236ddead72da..3f49c3a38784 100644
--- a/vcl/source/app/brand.cxx
+++ b/vcl/source/app/brand.cxx
@@ -61,9 +61,9 @@ bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap)
LanguageTag aLanguageTag( *pLoc);
::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings( true));
- for (size_t i=0; i < aFallbacks.size(); ++i)
+ for (const OUString & aFallback : aFallbacks)
{
- if (tryLoadPng( aBaseDir, aBaseName + "-" + aFallbacks[i] + aPng, rBitmap))
+ if (tryLoadPng( aBaseDir, aBaseName + "-" + aFallback + aPng, rBitmap))
return true;
}