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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 4 22:00:24 UTC 2019


 sw/source/ui/fldui/changedb.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 9d4ed3c555d0fd71b8b569f98814f1090bdeff17
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Feb 1 07:41:48 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Mon Feb 4 23:00:01 2019 +0100

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

diff --git a/sw/source/ui/fldui/changedb.cxx b/sw/source/ui/fldui/changedb.cxx
index 3cda5bbb3a50..54854cd99699 100644
--- a/sw/source/ui/fldui/changedb.cxx
+++ b/sw/source/ui/fldui/changedb.cxx
@@ -125,9 +125,10 @@ void SwChangeDBDlg::FillDBPopup()
 
 SvTreeListEntry* SwChangeDBDlg::Insert(const OUString& rDBName)
 {
-    const OUString sDBName(rDBName.getToken(0, DB_DELIM));
-    const OUString sTableName(rDBName.getToken(1, DB_DELIM));
-    sal_IntPtr nCommandType = rDBName.getToken(2, DB_DELIM).toInt32();
+    sal_Int32 nIdx{ 0 };
+    const OUString sDBName(rDBName.getToken(0, DB_DELIM, nIdx));
+    const OUString sTableName(rDBName.getToken(0, DB_DELIM, nIdx));
+    sal_IntPtr nCommandType = rDBName.getToken(0, DB_DELIM, nIdx).toInt32();
     SvTreeListEntry* pParent;
     SvTreeListEntry* pChild;
 


More information about the Libreoffice-commits mailing list