diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-09 18:08:50 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-13 07:37:45 +0100 |
commit | 60ee3d8e18b2cab428c22eb49883a5e307b8a689 (patch) | |
tree | f082c4c0dd1cd0323874d5f89f92312a804a2906 | |
parent | 6c623c048cf2c741f875c2fff87c9d863d294b57 (diff) |
Use indexed getToken()
Change-Id: Ie5aa54192c537738a37e348d00642f606295d985
Reviewed-on: https://gerrit.libreoffice.org/67624
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index e6d933ba7867..74c200c29c92 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -626,8 +626,9 @@ void AssignmentPersistentData::ImplCommit() DBG_ASSERT(nAdjustedTokenCount == static_cast<sal_Int32>(m_pImpl->aFieldLabels.size()), "AddressBookSourceDialog::AddressBookSourceDialog: inconsistence between logical and UI field names!"); m_pImpl->aLogicalFieldNames.reserve(nAdjustedTokenCount); + sal_Int32 nIdx{ 0 }; for (sal_Int32 i = 0; i<nAdjustedTokenCount; ++i) - m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(i, ';')); + m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(0, ';', nIdx)); PostUserEvent(LINK(this, AddressBookSourceDialog, OnDelayedInitialize), nullptr, true); // so the dialog will at least show up before we do the loading of the |