diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-01 07:42:50 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-08 19:30:21 +0100 |
commit | e5e1eca721ec35d51c41985e3020909ab956bdc5 (patch) | |
tree | 1c2c0843469ba01c69b57209cd7fdefab64143eb /sw | |
parent | dce3d4a758cf929d55c4c7220685bf7a5d332eda (diff) |
Use indexed getToken()
Change-Id: I8ab1c2956739c9b63de807176ca0e3a640d3961f
Reviewed-on: https://gerrit.libreoffice.org/67325
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/envelp/envlop1.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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)) { |