diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-26 15:43:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-27 15:03:40 +0200 |
commit | 5e4fc9540993ee5e10f1986918acdd868a1fcf1b (patch) | |
tree | ce8220d974c5e7994c82fb35b7bee0f7fd21a7ed /fpicker | |
parent | 0c2d6574c6cca4bbb0cc469fb2c976774394e01a (diff) |
clang-tidy modernize-loop-convert in f*
Change-Id: Id866aa244378758e3bdb9e99d02cdd2ae6104e16
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index 1dc31d51ed2d..f6e09294f323 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -1345,11 +1345,11 @@ void RemoteFilesDialog::UpdateControls( const OUString& rURL ) m_pName_ed->ClearEntries(); - for( ::std::vector< SvtContentEntry >::size_type i = 0; i < rFolders.size(); i++ ) + for(const auto & rFolder : rFolders) { //WebDAV folders path ends in '/', so strip it - OUString aFolderName = rFolders[i].maURL; - if( rFolders[i].mbIsFolder && ( ( aFolderName.lastIndexOf( '/' ) + 1 ) == aFolderName.getLength() ) ) + OUString aFolderName = rFolder.maURL; + if( rFolder.mbIsFolder && ( ( aFolderName.lastIndexOf( '/' ) + 1 ) == aFolderName.getLength() ) ) aFolderName = aFolderName.copy( 0, aFolderName.getLength() - 1 ); int nTitleStart = aFolderName.lastIndexOf( '/' ); @@ -1359,7 +1359,7 @@ void RemoteFilesDialog::UpdateControls( const OUString& rURL ) aFolderName.copy( nTitleStart + 1 ), INetURLObject::DECODE_WITH_CHARSET ) ); - if( rFolders[i].mbIsFolder ) + if( rFolder.mbIsFolder ) { aFolders.push_back( std::pair< OUString, OUString > ( sTitle, aFolderName ) ); } |