summaryrefslogtreecommitdiff
path: root/framework/source/uielement/togglebuttontoolbarcontroller.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:44:28 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 10:31:26 +0200
commitf662ba95361ba6b8eb49e0acd98bf28bc5f21100 (patch)
treea06ea88459155bb72b3f01dcda1d27f17cc49209 /framework/source/uielement/togglebuttontoolbarcontroller.cxx
parentbddfc920220b712c08eda96ac320a274e4bfcee6 (diff)
Prepare for removal of non-const operator[] from Sequence in framework
Change-Id: Ied2683a0b8a1bab1a7594da1e9bdbd3cb753552c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124370 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'framework/source/uielement/togglebuttontoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/togglebuttontoolbarcontroller.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/framework/source/uielement/togglebuttontoolbarcontroller.cxx b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
index 77bf14418ca5..37f65a336404 100644
--- a/framework/source/uielement/togglebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
@@ -19,6 +19,7 @@
#include <uielement/togglebuttontoolbarcontroller.hxx>
+#include <comphelper/propertyvalue.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/menu.hxx>
@@ -61,13 +62,9 @@ void SAL_CALL ToggleButtonToolbarController::dispose()
Sequence<PropertyValue> ToggleButtonToolbarController::getExecuteArgs(sal_Int16 KeyModifier) const
{
- Sequence<PropertyValue> aArgs( 2 );
-
- // Add key modifier to argument list
- aArgs[0].Name = "KeyModifier";
- aArgs[0].Value <<= KeyModifier;
- aArgs[1].Name = "Text";
- aArgs[1].Value <<= m_aCurrentSelection;
+ Sequence<PropertyValue> aArgs{ // Add key modifier to argument list
+ comphelper::makePropertyValue("KeyModifier", KeyModifier),
+ comphelper::makePropertyValue("Text", m_aCurrentSelection) };
return aArgs;
}