[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 8 18:30:45 UTC 2019
sw/source/ui/envelp/envlop1.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit e5e1eca721ec35d51c41985e3020909ab956bdc5
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Fri Feb 1 07:42:50 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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))
{
More information about the Libreoffice-commits
mailing list