diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-10 16:35:30 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-03-05 22:26:33 +0100 |
commit | 2e70e02b8eff25b1abcfac125a46724793a6b8dd (patch) | |
tree | cad6a23ee545472174a329d82176b1aefd66c0ee /sd | |
parent | b612cf0e06de231b7f936269db3b51a7f0e8ae3b (diff) |
Use indexed getToken()
Change-Id: I76b565d24a27eda62383df757f97d197c3b276a8
Reviewed-on: https://gerrit.libreoffice.org/67646
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuprlout.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 13548e66b6d5..9e9eb7721596 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -211,7 +211,8 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) if (bLoad) { - OUString aFileName = aFile.getToken(0, DOCUMENT_TOKEN); + sal_Int32 nIdx{ 0 }; + OUString aFileName = aFile.getToken(0, DOCUMENT_TOKEN, nIdx); SdDrawDocument* pTempDoc = mpDoc->OpenBookmarkDoc( aFileName ); // #69581: If I chose the standard-template I got no filename and so I get no @@ -219,7 +220,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) // a NULL-pointer as a Standard-template ( look at SdDrawDocument::SetMasterPage ) OUString aLayoutName; if( pTempDoc ) - aLayoutName = aFile.getToken(1, DOCUMENT_TOKEN); + aLayoutName = aFile.getToken(0, DOCUMENT_TOKEN, nIdx); for (auto nSelectedPage : aSelectedPageNums) mpDoc->SetMasterPage(nSelectedPage, aLayoutName, pTempDoc, bMasterPage, bCheckMasters); mpDoc->CloseBookmarkDoc(); |