diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-02-20 16:16:40 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-02-21 04:30:34 +0000 |
commit | ccd0ef98f76011f108f8ea1d282b96386dba0a6a (patch) | |
tree | b5122e4ee7e6eba503b3e65632de2ee299ee5905 /unotest | |
parent | 1a022fcbc8bf256eccccb04319aa3ecfc4a3c1b5 (diff) |
tdf#153752: SbxObject::Execute: extra characters in Option Compatible mode
Change-Id: Ib3e4bd9eb9a249123a686f2434ded7b529fb050f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147345
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/macros_test.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index a8b8f6bdf572..36438b2e50ec 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -75,9 +75,10 @@ MacrosTest::loadFromDesktop(const OUString& rURL, const OUString& rDocService, return xComponent; } -void MacrosTest::dispatchCommand(const uno::Reference<lang::XComponent>& xComponent, - const OUString& rCommand, - const uno::Sequence<beans::PropertyValue>& rPropertyValues) +css::uno::Any +MacrosTest::dispatchCommand(const uno::Reference<lang::XComponent>& xComponent, + const OUString& rCommand, + const uno::Sequence<beans::PropertyValue>& rPropertyValues) { uno::Reference<frame::XController> xController = uno::Reference<frame::XModel>(xComponent, uno::UNO_QUERY_THROW)->getCurrentController(); @@ -89,7 +90,7 @@ void MacrosTest::dispatchCommand(const uno::Reference<lang::XComponent>& xCompon uno::Reference<frame::XDispatchHelper> xDispatchHelper(frame::DispatchHelper::create(xContext)); CPPUNIT_ASSERT(xDispatchHelper.is()); - xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, rPropertyValues); + return xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, rPropertyValues); } std::unique_ptr<SvStream> MacrosTest::parseExportStream(const OUString& url, |