diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:29:41 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-01 09:55:03 +0100 |
commit | d12f25905c3d7e474b603a716669b12143b6c34a (patch) | |
tree | e6050b21f43f09bf5105b0a073ef8dc3ae3fbe55 /xmlsecurity/source/helper/xsecverify.cxx | |
parent | f16f35d40948bd4bbe835e0ba3c2f75aa0de23f7 (diff) |
Prepare for removal of non-const operator[] from Sequence in xmlsecurity
Change-Id: I7cfcf9f9ea307bd737292e6f4f37a29f453167c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124418
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlsecurity/source/helper/xsecverify.cxx')
-rw-r--r-- | xmlsecurity/source/helper/xsecverify.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlsecurity/source/helper/xsecverify.cxx b/xmlsecurity/source/helper/xsecverify.cxx index 10fc8dc9eb1d..46f087801bd5 100644 --- a/xmlsecurity/source/helper/xsecverify.cxx +++ b/xmlsecurity/source/helper/xsecverify.cxx @@ -40,6 +40,7 @@ #include <unotools/datetime.hxx> #include <comphelper/base64.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/propertyvalue.hxx> #include <comphelper/seqstream.hxx> namespace com::sun::star::graphic { class XGraphic; } @@ -485,9 +486,7 @@ Reference<css::graphic::XGraphic> lcl_getGraphicFromString(const OUString& rImag graphic::GraphicProvider::create(comphelper::getProcessComponentContext()) ); Reference< io::XInputStream > xInputStream( new ::comphelper::SequenceInputStream( seq ) ); - Sequence< PropertyValue > aArgs( 1 ); - aArgs[ 0 ].Name = "InputStream"; - aArgs[ 0 ].Value <<= xInputStream; + Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue("InputStream", xInputStream) }; xGraphic = xGraphicProvider->queryGraphic(aArgs); return xGraphic; |