sw/source/ui/envelp/envlop1.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit e5e1eca721ec35d51c41985e3020909ab956bdc5
Author:     Matteo Casalin <matteo.casa...@yahoo.com>
AuthorDate: Fri Feb 1 07:42:50 2019 +0100
Commit:     Matteo Casalin <matteo.casa...@yahoo.com>
CommitDate: Fri Feb 8 19:30:21 2019 +0100

    Use indexed getToken()
    
    Change-Id: I8ab1c2956739c9b63de807176ca0e3a640d3961f
    Reviewed-on: https://gerrit.libreoffice.org/67325
    Tested-by: Jenkins
    Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com>

diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
index 2c765de7a5d5..3c1c9514e138 100644
--- a/sw/source/ui/envelp/envlop1.cxx
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -285,8 +285,9 @@ void SwEnvPage::InitDatabaseBox()
         for (sal_Int32 i = 0; i < aDataNames.getLength(); ++i)
             m_xDatabaseLB->append_text(pDataNames[i]);
 
-        OUString sDBName = m_sActDBName.getToken( 0, DB_DELIM );
-        OUString sTableName = m_sActDBName.getToken( 1, DB_DELIM );
+        sal_Int32 nIdx{ 0 };
+        OUString sDBName = m_sActDBName.getToken( 0, DB_DELIM, nIdx );
+        OUString sTableName = m_sActDBName.getToken( 0, DB_DELIM, nIdx );
         m_xDatabaseLB->set_active_text(sDBName);
         if (m_pSh->GetDBManager()->GetTableNames(*m_xTableLB, sDBName))
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to