summaryrefslogtreecommitdiff
path: root/sfx2/source/view/lokcharthelper.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:03:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-31 06:56:49 +0100
commitce22935a8586eda71fd29d4ff969d9cd7a2ec15b (patch)
treeea0e84fe6d4b5b6e6ac5f3cc4ba1295dcf1bcdb1 /sfx2/source/view/lokcharthelper.cxx
parentc6af59b234e8eb8182dc7f686290524feafd6ed6 (diff)
Prepare for removal of non-const operator[] from Sequence in sfx2
Change-Id: I0cdce64983901a6cc3b50dc9873a370ff08b9eb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124387 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source/view/lokcharthelper.cxx')
-rw-r--r--sfx2/source/view/lokcharthelper.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/view/lokcharthelper.cxx b/sfx2/source/view/lokcharthelper.cxx
index 5f29a9981904..1097c0a3c39b 100644
--- a/sfx2/source/view/lokcharthelper.cxx
+++ b/sfx2/source/view/lokcharthelper.cxx
@@ -10,6 +10,7 @@
#include <sfx2/lokcharthelper.hxx>
#include <comphelper/lok.hxx>
+#include <comphelper/propertyvalue.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <sfx2/ipclient.hxx>
#include <sfx2/lokhelper.hxx>
@@ -315,10 +316,11 @@ bool LokChartHelper::setTextSelection(int nType, int nX, int nY)
// that are converted to hmm
util::URL aURL;
aURL.Path = "LOKSetTextSelection";
- uno::Sequence< beans::PropertyValue > aArgs(3);
- aArgs[0].Value <<= static_cast<sal_Int32>(nType);
- aArgs[1].Value <<= static_cast<sal_Int32>(nChartWinX);
- aArgs[2].Value <<= static_cast<sal_Int32>(nChartWinY);
+ uno::Sequence< beans::PropertyValue > aArgs{
+ comphelper::makePropertyValue({}, static_cast<sal_Int32>(nType)), // Why no name?
+ comphelper::makePropertyValue({}, static_cast<sal_Int32>(nChartWinX)),
+ comphelper::makePropertyValue({}, static_cast<sal_Int32>(nChartWinY))
+ };
xDispatcher->dispatch(aURL, aArgs);
}
return true;