sw/source/writerfilter/ooxml/OOXMLDocumentImpl.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 44bc72607eea3df8f49f377fe53f4b001c5bdf40 Author: Mike Kaganski <[email protected]> AuthorDate: Wed Mar 11 07:55:59 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Wed Mar 11 09:35:18 2026 +0100 Simplify a bit Change-Id: I00490588dbc48d72c7fca55747a4a6fa3912170d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201425 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/sw/source/writerfilter/ooxml/OOXMLDocumentImpl.cxx b/sw/source/writerfilter/ooxml/OOXMLDocumentImpl.cxx index 7312f3498719..667283a1bc05 100644 --- a/sw/source/writerfilter/ooxml/OOXMLDocumentImpl.cxx +++ b/sw/source/writerfilter/ooxml/OOXMLDocumentImpl.cxx @@ -37,6 +37,7 @@ #include <comphelper/diagnose_ex.hxx> #include <svx/dialmgr.hxx> #include <svx/strings.hrc> +#include <comphelper/propertyvalue.hxx> #include <comphelper/sequence.hxx> #include <comphelper/namedvaluecollection.hxx> #include <cppuhelper/exc_hlp.hxx> @@ -807,7 +808,6 @@ void OOXMLDocument::resolveEmbeddingsStream(const OOXMLStream::Pointer_t& pStrea } } - beans::PropertyValue embeddingsTemp; // This will add all .xlsx and .bin to grabbag list. if(bFound && mxEmbeddings.is()) { @@ -818,9 +818,8 @@ void OOXMLDocument::resolveEmbeddingsStream(const OOXMLStream::Pointer_t& pStrea { return rValue.Name == embeddingsTarget; }); if (!bAlreadyExists) { - embeddingsTemp.Name = embeddingsTarget; - embeddingsTemp.Value <<= mxEmbeddings; - m_aEmbeddings.push_back(embeddingsTemp); + m_aEmbeddings.push_back( + comphelper::makePropertyValue(embeddingsTarget, mxEmbeddings)); } mxEmbeddings.clear(); }
