summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fusel.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 16:35:04 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-17 16:58:21 +0100
commit60f82494a2b4f87220f1bfe9e866ad387fdf948c (patch)
tree7b30a9c0143c8d6966758c9e0cc8a0c3019f5a04 /sd/source/ui/func/fusel.cxx
parented05ab0005d68c91c1c6d3a16dd863e9b86628ea (diff)
Use indexed getToken()
Change-Id: I0f4e864ed27a5a9e071489c74f72859118627b08 Reviewed-on: https://gerrit.libreoffice.org/67645 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sd/source/ui/func/fusel.cxx')
-rw-r--r--sd/source/ui/func/fusel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index 30619d2a303a..136a1c784383 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -1418,8 +1418,9 @@ bool FuSelection::AnimateObj(SdrObject* pObj, const Point& rPos)
// aMacro has got following format:
// "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);
// In this moment the Call-method only
// resolves modulename+macroname