sd/source/ui/slideshow/slideshowimpl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 437e210e2a11928d4bea0b5af532a00d2e060311 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sun Feb 10 16:34:37 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Sun Feb 17 16:58:58 2019 +0100 Use indexed getToken() Change-Id: I463614e55ff9bae7bf3223a67d2ad2ab7725ee3e Reviewed-on: https://gerrit.libreoffice.org/67644 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 30229e0cfeb9..b3320f992aef 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1538,8 +1538,9 @@ void SlideshowImpl::click( const Reference< XShape >& xShape ) // aMacro has the following syntax: // "Macroname.Modulname.Libname.Documentname" or // "Macroname.Modulname.Libname.Applicationname" - OUString aMacroName = aMacro.getToken(0, '.'); - OUString aModulName = aMacro.getToken(1, '.'); + sal_Int32 nIdx{ 0 }; + const OUString aMacroName = aMacro.getToken(0, '.', nIdx); + const OUString aModulName = aMacro.getToken(0, '.', nIdx); // todo: is the limitation still given that only // Modulname+Macroname can be used here? _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits