diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-03 18:57:59 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-04 23:09:31 +0100 |
commit | 973c906d2af03284a662478d292124bbb0502548 (patch) | |
tree | 24a2f51818d1718cdf303a3188e1b78c6a372358 | |
parent | 4a8f0d4ee9b144d215378582f02f788327e8f502 (diff) |
Use indexed getToken()
Change-Id: I136a1cdb4a1522d78120f12e5f9ea5ced653c1b6
Reviewed-on: https://gerrit.libreoffice.org/67334
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r-- | sw/source/core/fields/authfld.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx index bf7ceb6df3ee..bd1ff9ff703c 100644 --- a/sw/source/core/fields/authfld.cxx +++ b/sw/source/core/fields/authfld.cxx @@ -103,9 +103,10 @@ void SwAuthorityFieldType::RemoveField(const SwAuthEntry* nHandle) SwAuthEntry* SwAuthorityFieldType::AddField(const OUString& rFieldContents) { rtl::Reference<SwAuthEntry> pEntry(new SwAuthEntry); + sal_Int32 nIdx{ 0 }; for( sal_Int32 i = 0; i < AUTH_FIELD_END; ++i ) pEntry->SetAuthorField( static_cast<ToxAuthorityField>(i), - rFieldContents.getToken( i, TOX_STYLE_DELIMITER )); + rFieldContents.getToken( 0, TOX_STYLE_DELIMITER, nIdx )); for (auto &rpTemp : m_DataArr) { |