summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-01-28 12:38:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-01-28 18:55:02 +0100
commit85538dd33b227cabb29e9dc630691a7edb6c3920 (patch)
tree63a63c0fbfb75728fa8ae197409821e8d1d2e9cd /vcl/source/app
parent1730d47aab69310687e2b3afb12f8b63102f9b88 (diff)
Modernize a bit vcl (part1)
by using for-range loops + remove useless vars + avoid some iterators calculus by using plain loop Change-Id: I94572bfd56ad9ac76c9899cf68d5ba831009fa7b Reviewed-on: https://gerrit.libreoffice.org/48777 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/IconThemeScanner.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/IconThemeScanner.cxx b/vcl/source/app/IconThemeScanner.cxx
index 228c4e00f6cf..846eeaa7c942 100644
--- a/vcl/source/app/IconThemeScanner.cxx
+++ b/vcl/source/app/IconThemeScanner.cxx
@@ -92,9 +92,9 @@ void IconThemeScanner::ScanDirectoryForIconThemes(const OUString& paths)
SAL_WARN("vcl.app", "Could not find any icon themes in the provided directory ('" <<path<<"'.");
continue;
}
- for (std::vector<OUString>::iterator aI = iconThemePaths.begin(); aI != iconThemePaths.end(); ++aI)
+ for (auto const& iconThemePath : iconThemePaths)
{
- AddIconThemeByPath(*aI);
+ AddIconThemeByPath(iconThemePath);
}
}
}