diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:13:01 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-31 15:49:07 +0100 |
commit | 5b54ba7084d6b575814af26be30cf5af5dfca12c (patch) | |
tree | 38f1fd7bfca54886c34f6bcbdd9220d3f1a90f13 /svx/source/dialog/signaturelinehelper.cxx | |
parent | 3d469248ada8632a9d86efc80f2ac97dcb617c27 (diff) |
Prepare for removal of non-const operator[] from Sequence in svx
Change-Id: Ib5fda9469f9a1987cf9071c0e228c582cfb3dfa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124397
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/dialog/signaturelinehelper.cxx')
-rw-r--r-- | svx/source/dialog/signaturelinehelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/signaturelinehelper.cxx b/svx/source/dialog/signaturelinehelper.cxx index e40cb6885b59..52bead204d28 100644 --- a/svx/source/dialog/signaturelinehelper.cxx +++ b/svx/source/dialog/signaturelinehelper.cxx @@ -13,6 +13,7 @@ #include <com/sun/star/security/DocumentDigitalSignatures.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/propertyvalue.hxx> #include <comphelper/sequenceashashmap.hxx> #include <comphelper/storagehelper.hxx> #include <comphelper/xmlsechelper.hxx> @@ -117,9 +118,8 @@ uno::Reference<graphic::XGraphic> importSVG(std::u16string_view rSVG) uno::Reference<graphic::XGraphicProvider> xProvider = graphic::GraphicProvider::create(xContext); - uno::Sequence<beans::PropertyValue> aMediaProperties(1); - aMediaProperties[0].Name = "InputStream"; - aMediaProperties[0].Value <<= xInputStream; + uno::Sequence<beans::PropertyValue> aMediaProperties{ comphelper::makePropertyValue( + "InputStream", xInputStream) }; uno::Reference<graphic::XGraphic> xGraphic(xProvider->queryGraphic(aMediaProperties)); return xGraphic; } |