diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-09 18:27:11 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-13 07:47:40 +0100 |
commit | 2e0f6635d6136622a00c04ce7041969f4d7f4348 (patch) | |
tree | 7c568a5766c1b4c904d03e4db14553953ee10ab5 /sfx2 | |
parent | 6975073dc1e44025cd7863feadac5d52443a268e (diff) |
Use indexed getToken()
Change-Id: I393c53d7501afc6cd75a4c463031db94574b4ec7
Reviewed-on: https://gerrit.libreoffice.org/67629
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 085205a36a1a..b8711f6f25cd 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -553,10 +553,11 @@ void SfxDocTplService_Impl::getDirList() const OUString aPrefix( "vnd.sun.star.expand:" ); + sal_Int32 nIdx{ 0 }; for (sal_Int32 i = 0; i < nCount; ++i) { aURL.SetSmartProtocol( INetProtocol::File ); - aURL.SetURL( aDirs.getToken( i, C_DELIM ) ); + aURL.SetURL( aDirs.getToken( 0, C_DELIM, nIdx ) ); maTemplateDirs[i] = aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ); sal_Int32 nIndex = maTemplateDirs[i].indexOf( aPrefix ); |