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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 4 20:54:35 UTC 2019


 sw/source/uibase/app/apphdl.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit a56cc4e993cd5aa7dd9375777a94b09b6a4f8c6a
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Jan 27 19:45:24 2019 +0100
Commit:     Matteo Casalin <matteo.casalin at yahoo.com>
CommitDate: Mon Feb 4 21:54:12 2019 +0100

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

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 9269f46dc5a0..061a44513e64 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -287,9 +287,10 @@ std::shared_ptr<SwMailMergeConfigItem> SwView::EnsureMailMergeConfigItem(const S
             {
                 OUString sDBName(aDBNameList[0]);
                 SwDBData aDBData;
-                aDBData.sDataSource = sDBName.getToken(0, DB_DELIM);
-                aDBData.sCommand = sDBName.getToken(1, DB_DELIM);
-                aDBData.nCommandType = sDBName.getToken(2, DB_DELIM).toInt32();
+                sal_Int32 nIdx{ 0 };
+                aDBData.sDataSource = sDBName.getToken(0, DB_DELIM, nIdx);
+                aDBData.sCommand = sDBName.getToken(0, DB_DELIM, nIdx);
+                aDBData.nCommandType = sDBName.getToken(0, DB_DELIM, nIdx).toInt32();
                 //set the currently used database for the wizard
                 xMMConfig->SetCurrentDBData(aDBData);
             }


More information about the Libreoffice-commits mailing list