diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-01 07:42:18 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-04 23:00:28 +0100 |
commit | 81c3d469413db27d22ea757ccef677b1aa0669c0 (patch) | |
tree | 30658772e9e52e6a4c5e206081e1a29e3d8e3c37 /sw | |
parent | 9d4ed3c555d0fd71b8b569f98814f1090bdeff17 (diff) |
Use indexed getToken()
Change-Id: Ic500623b851cd8f4db665aa7c3de7443e0d39a87
Reviewed-on: https://gerrit.libreoffice.org/67324
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index a2e1691a5aec..314146a7d049 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -432,8 +432,9 @@ void SwLabPage::InitDatabaseBox() const OUString* pDataNames = aDataNames.getConstArray(); for (long i = 0; i < aDataNames.getLength(); i++) m_xDatabaseLB->append_text(pDataNames[i]); - OUString sDBName = sActDBName.getToken( 0, DB_DELIM ); - OUString sTableName = sActDBName.getToken( 1, DB_DELIM ); + sal_Int32 nIdx{ 0 }; + OUString sDBName = sActDBName.getToken( 0, DB_DELIM, nIdx ); + OUString sTableName = sActDBName.getToken( 0, DB_DELIM, nIdx ); m_xDatabaseLB->set_active_text(sDBName); if( !sDBName.isEmpty() && GetDBManager()->GetTableNames(*m_xTableLB, sDBName)) { |