summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-22 12:22:06 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-22 14:11:47 +0200
commiteaf41045822732653a0af91ac0faa28fca7f0894 (patch)
treee28628a836b7f2bf55f3ab69032cbdf5ae67f293 /comphelper
parent017f250764ec7b4ecb82ac19f5b3f68cadf1bf56 (diff)
comphelper::dispatchCommand: allow passing command arguments
Change-Id: I6464c5d1a46fadac2510700101f3c8cc29dd7995
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/dispatchcommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/dispatchcommand.cxx b/comphelper/source/misc/dispatchcommand.cxx
index dd43523fcc2f..5de05542dbb4 100644
--- a/comphelper/source/misc/dispatchcommand.cxx
+++ b/comphelper/source/misc/dispatchcommand.cxx
@@ -30,7 +30,7 @@ using namespace css;
namespace comphelper {
-bool dispatchCommand(const OUString& rCommand)
+bool dispatchCommand(const OUString& rCommand, const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
{
// Target where we will execute the .uno: command
uno::Reference<uno::XComponentContext> xContext = ::comphelper::getProcessComponentContext();
@@ -54,7 +54,7 @@ bool dispatchCommand(const OUString& rCommand)
return false;
// And do the work...
- xDisp->dispatch(aCommandURL, uno::Sequence<beans::PropertyValue>());
+ xDisp->dispatch(aCommandURL, rArguments);
return true;
}