summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 24aa084de432..b806e17b4a63 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -792,11 +792,9 @@ void SdtBlockHelper::WriteSdtBlock(const ::sax_fastparser::FSHelperPtr& pSeriali
}
if (m_nSdtPrToken == FSNS(XML_w, XML_date) || m_nSdtPrToken == FSNS(XML_w, XML_docPartObj) || m_nSdtPrToken == FSNS(XML_w, XML_docPartList) || m_nSdtPrToken == FSNS(XML_w14, XML_checkbox)) {
- const std::vector<sal_Int32>& rAttributeTokens = m_pTokenChildren->getFastAttributeTokens();
- for (size_t i = 0, n = rAttributeTokens.size(); i < n; ++i)
+ for (auto& it : *m_pTokenChildren)
{
- pSerializer->singleElement(rAttributeTokens[i], FSNS(XML_w, XML_val),
- m_pTokenChildren->getValueByIndex(i));
+ pSerializer->singleElement(it.getToken(), FSNS(XML_w, XML_val), it.toCString());
}
}