summaryrefslogtreecommitdiff
path: root/fpicker/source/office/iodlg.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-17 12:35:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-17 17:18:47 +0100
commit95e70f71b951a91dcfa38e313b59cbe090db2ec1 (patch)
tree4b49d1bb6c7539fbfe26c2e821eda3c20490de99 /fpicker/source/office/iodlg.cxx
parent5833734027f9194e3433d82a6e8848b64e2ae3b1 (diff)
Use for-range loops in fpicker
Change-Id: I9bca308889c6e15ce9fcbc82f5c6c5e126b29022 Reviewed-on: https://gerrit.libreoffice.org/51460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'fpicker/source/office/iodlg.cxx')
-rw-r--r--fpicker/source/office/iodlg.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 069877c4c1ea..a6503e680d31 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -502,10 +502,11 @@ void SvtFileDialog::dispose()
Sequence< OUString > placesUrlsList(pImpl->_pPlaces->GetNbEditablePlaces());
Sequence< OUString > placesNamesList(pImpl->_pPlaces->GetNbEditablePlaces());
int i(0);
- for(std::vector<PlacePtr>::const_iterator it = aPlaces.begin(); it != aPlaces.end(); ++it) {
- if((*it)->IsEditable()) {
- placesUrlsList[i] = (*it)->GetUrl();
- placesNamesList[i] = (*it)->GetName();
+ for (auto const& place : aPlaces)
+ {
+ if(place->IsEditable()) {
+ placesUrlsList[i] = place->GetUrl();
+ placesNamesList[i] = place->GetName();
++i;
}
}