[Libreoffice-commits] core.git: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Feb 17 15:58:43 UTC 2019


 sd/source/ui/func/fusel.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 60f82494a2b4f87220f1bfe9e866ad387fdf948c
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 16:35:04 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Sun Feb 17 16:58:21 2019 +0100

    Use indexed getToken()
    
    Change-Id: I0f4e864ed27a5a9e071489c74f72859118627b08
    Reviewed-on: https://gerrit.libreoffice.org/67645
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>

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


More information about the Libreoffice-commits mailing list