From 265068d65b39688b8a4756dfbcd46453dd1f9b70 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 May 2016 14:39:07 +0200 Subject: clang-tidy modernize-loop-convert in scripting to svtools Change-Id: I98229d14109cf243839d632feabde1391ea9bad5 Reviewed-on: https://gerrit.libreoffice.org/24847 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/base/filelist.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sot/source/base') diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx index 49346445e271..b22e2c62acda 100644 --- a/sot/source/base/filelist.cxx +++ b/sot/source/base/filelist.cxx @@ -48,8 +48,8 @@ void FileList::ClearAll() FileList& FileList::operator=( const FileList& rFileList ) { - for ( size_t i = 0, n = rFileList.aStrList.size(); i < n; ++i ) - aStrList.push_back( rFileList.aStrList[ i ] ); + for (const auto & i : rFileList.aStrList) + aStrList.push_back( i ); return *this; } -- cgit