Kaydet (Commit) 973c906d authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexed getToken()

Change-Id: I136a1cdb4a1522d78120f12e5f9ea5ced653c1b6
Reviewed-on: https://gerrit.libreoffice.org/67334
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 4a8f0d4e
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment