[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Mon Sep 5 13:43:34 UTC 2016
vcl/source/uitest/uitest.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f893a2b9ee74e15de4ead641635c728616b65bdc
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Sep 5 15:42:29 2016 +0200
Simplify Sequence construction
Change-Id: I24b53d2879d1aa34d7882300c7b51e42e621160e
diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx
index da4f9fe..46457eb 100644
--- a/vcl/source/uitest/uitest.cxx
+++ b/vcl/source/uitest/uitest.cxx
@@ -18,10 +18,10 @@
void UITest::executeCommand(const OUString& rCommand)
{
- css::uno::Sequence<css::beans::PropertyValue> aProps(1);
- aProps[0].Name = "SynchronMode";
- aProps[0].Value = css::uno::toAny(false);
- comphelper::dispatchCommand(rCommand, aProps);
+ comphelper::dispatchCommand(
+ rCommand,
+ {{"SynchronMode", -1, css::uno::Any(false),
+ css::beans::PropertyState_DIRECT_VALUE}});
}
std::unique_ptr<UIObject> UITest::getFocusTopWindow()
More information about the Libreoffice-commits
mailing list