summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 16:34:37 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-17 16:58:58 +0100
commit437e210e2a11928d4bea0b5af532a00d2e060311 (patch)
treecfa96b90bbe5595f7a053c778788011ae3202d6d /sd/source/ui/slideshow
parent60f82494a2b4f87220f1bfe9e866ad387fdf948c (diff)
Use indexed getToken()
Change-Id: I463614e55ff9bae7bf3223a67d2ad2ab7725ee3e Reviewed-on: https://gerrit.libreoffice.org/67644 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sd/source/ui/slideshow')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx5
1 files changed, 3 insertions, 2 deletions
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?