diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-10 11:53:23 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-10 11:56:37 +0100 |
commit | 686ee0aaca664ebb276724832830ecb038f07978 (patch) | |
tree | 743db41129abc8727f27e6196f98ee1019ac3a08 /avmedia | |
parent | 95af5f51fa6c7a0129360bb9df687fb8660fd3c9 (diff) |
avmedia: avoid passing an empty any to InitPropertySequence()
Regression from b1534edf523a405b91ad04c5351735e745ceb7ee (tdf#89592
Using initializer_lists to populate Sequence<PropertyValue>,
2015-03-07).
Additionally, avoid makeAny() on the Any, the original code didn't do
that.
Thanks to lgodard/sberg for noticing these.
Change-Id: Icb3a6039885c582ba9f789c5c4768b865b593aee
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediatoolbox.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/avmedia/source/framework/mediatoolbox.cxx b/avmedia/source/framework/mediatoolbox.cxx index d33cd93149c8..280cdb5e1e1f 100644 --- a/avmedia/source/framework/mediatoolbox.cxx +++ b/avmedia/source/framework/mediatoolbox.cxx @@ -149,12 +149,12 @@ void MediaToolBoxControl::implExecuteMediaControl( const MediaItem& rItem ) { MediaItem aExecItem( SID_AVMEDIA_TOOLBOX ); uno::Any aAny; - auto aArgs(::comphelper::InitPropertySequence({ - { "AVMediaToolBox", makeAny(aAny) } - })); aExecItem.merge( rItem ); aExecItem.QueryValue( aAny ); + auto aArgs(::comphelper::InitPropertySequence({ + { "AVMediaToolBox", aAny } + })); Dispatch( ".uno:AVMediaToolBox" , aArgs ); } |