summaryrefslogtreecommitdiff
path: root/forms/source/component/clickableimage.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:39:59 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 09:28:10 +0200
commitbddfc920220b712c08eda96ac320a274e4bfcee6 (patch)
tree22addf320f016accb768d83f7760768daa1a5bd1 /forms/source/component/clickableimage.cxx
parent3797007c2fe143dc3c83c72eeb5cc6d1cb401792 (diff)
Prepare for removal of non-const operator[] from Sequence in forms
Change-Id: I2b7bd7935d7e620b9f283ec7c0548beeb97c140d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124366 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'forms/source/component/clickableimage.cxx')
-rw-r--r--forms/source/component/clickableimage.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx
index 8dd3489967f5..77dd6c5943b6 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -44,6 +44,7 @@
#include <services.hxx>
#include <comphelper/interfacecontainer2.hxx>
#include <comphelper/property.hxx>
+#include <comphelper/propertyvalue.hxx>
#include <comphelper/types.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <svtools/imageresourceaccess.hxx>
@@ -317,15 +318,12 @@ namespace frm
if ( xDisp.is() )
{
- Sequence<PropertyValue> aProps(3);
- aProps[0].Name = "URL";
- aProps[0].Value <<= aURL.Complete;
-
- aProps[1].Name = "FrameName";
- aProps[1].Value = xSet->getPropertyValue(PROPERTY_TARGET_FRAME);
-
- aProps[2].Name = "Referer";
- aProps[2].Value <<= xModel->getURL();
+ Sequence<PropertyValue> aProps{
+ comphelper::makePropertyValue("URL", aURL.Complete),
+ comphelper::makePropertyValue(
+ "FrameName", xSet->getPropertyValue(PROPERTY_TARGET_FRAME)),
+ comphelper::makePropertyValue("Referer", xModel->getURL())
+ };
xDisp->dispatch( aHyperLink, aProps );
}