summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appopen.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-02-06 19:25:01 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 06:30:31 +0100
commit9751a273747a2a6ba80c8b2e6012d788eee7c461 (patch)
tree8c22066aea5baffa7427e6374f447a6f5dd0421a /sfx2/source/appl/appopen.cxx
parentf0c171a1dd2698f5bec14f5cf00136477032c202 (diff)
Use for-range loops in sfx2 (part1)
Change-Id: I1a06e105ca9f1151afca236c83e3e0c9d2679c6f Reviewed-on: https://gerrit.libreoffice.org/49318 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/appopen.cxx')
-rw-r--r--sfx2/source/appl/appopen.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx
index cba90f661a86..c9a4d8ace070 100644
--- a/sfx2/source/appl/appopen.cxx
+++ b/sfx2/source/appl/appopen.cxx
@@ -703,10 +703,10 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
rReq.AppendItem(SfxStringItem(SID_DOC_SERVICE, aDocService));
}
- for(std::vector<OUString>::const_iterator i = aURLList.begin(); i != aURLList.end(); ++i)
+ for (auto const& url : aURLList)
{
rReq.RemoveItem( SID_FILE_NAME );
- rReq.AppendItem( SfxStringItem( SID_FILE_NAME, *i ) );
+ rReq.AppendItem( SfxStringItem( SID_FILE_NAME, url ) );
// Run synchronous, so that not the next document is loaded
// when rescheduling