summaryrefslogtreecommitdiff
path: root/sfx2/source/control/charwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/charwin.cxx')
-rw-r--r--sfx2/source/control/charwin.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx
index 99f5c5796d08..eb5b5662a817 100644
--- a/sfx2/source/control/charwin.cxx
+++ b/sfx2/source/control/charwin.cxx
@@ -23,6 +23,7 @@
#include <vcl/svapp.hxx>
#include <sfx2/charwin.hxx>
#include <comphelper/dispatchcommand.hxx>
+#include <comphelper/propertyvalue.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -98,12 +99,9 @@ void SvxCharView::InsertCharToDoc()
if (GetText().isEmpty())
return;
- uno::Sequence<beans::PropertyValue> aArgs(2);
- aArgs[0].Name = "Symbols";
- aArgs[0].Value <<= GetText();
-
- aArgs[1].Name = "FontName";
- aArgs[1].Value <<= maFont.GetFamilyName();
+ uno::Sequence<beans::PropertyValue> aArgs{ comphelper::makePropertyValue("Symbols", GetText()),
+ comphelper::makePropertyValue(
+ "FontName", maFont.GetFamilyName()) };
comphelper::dispatchCommand(".uno:InsertSymbol", aArgs);
}