Kaydet (Commit) 2e70e02b authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken()

Change-Id: I76b565d24a27eda62383df757f97d197c3b276a8
Reviewed-on: https://gerrit.libreoffice.org/67646
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst b612cf0e
...@@ -211,7 +211,8 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) ...@@ -211,7 +211,8 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq )
if (bLoad) 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 ); SdDrawDocument* pTempDoc = mpDoc->OpenBookmarkDoc( aFileName );
// #69581: If I chose the standard-template I got no filename and so I get no // #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 ) ...@@ -219,7 +220,7 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq )
// a NULL-pointer as a Standard-template ( look at SdDrawDocument::SetMasterPage ) // a NULL-pointer as a Standard-template ( look at SdDrawDocument::SetMasterPage )
OUString aLayoutName; OUString aLayoutName;
if( pTempDoc ) if( pTempDoc )
aLayoutName = aFile.getToken(1, DOCUMENT_TOKEN); aLayoutName = aFile.getToken(0, DOCUMENT_TOKEN, nIdx);
for (auto nSelectedPage : aSelectedPageNums) for (auto nSelectedPage : aSelectedPageNums)
mpDoc->SetMasterPage(nSelectedPage, aLayoutName, pTempDoc, bMasterPage, bCheckMasters); mpDoc->SetMasterPage(nSelectedPage, aLayoutName, pTempDoc, bMasterPage, bCheckMasters);
mpDoc->CloseBookmarkDoc(); mpDoc->CloseBookmarkDoc();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment