From a5810faae384f7f73e8e835c1f536785a60881d2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Apr 2016 10:56:28 +0200 Subject: clang-tidy modernize-loop-convert in d* Change-Id: I0830a41b48e884ef63d32b5873c7007195659bb9 --- desktop/source/app/langselect.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop/source/app/langselect.cxx') diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx index 32240d02349b..a8309e5987ba 100644 --- a/desktop/source/app/langselect.cxx +++ b/desktop/source/app/langselect.cxx @@ -61,8 +61,7 @@ OUString getInstalledLocale( } } ::std::vector fallbacks( LanguageTag( locale).getFallbackStrings( false)); - for (size_t f=0; f < fallbacks.size(); ++f) { - const OUString& rf = fallbacks[f]; + for (OUString & rf : fallbacks) { for (sal_Int32 i = 0; i != installed.getLength(); ++i) { if (installed[i] == rf) { return installed[i]; -- cgit