[Libreoffice-commits] core.git: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Feb 17 15:59:19 UTC 2019
sd/source/ui/slideshow/slideshowimpl.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 437e210e2a11928d4bea0b5af532a00d2e060311
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 16:34:37 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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?
More information about the Libreoffice-commits
mailing list