Kaydet (Commit) 686ee0aa authored tarafından Miklos Vajna's avatar Miklos Vajna

avmedia: avoid passing an empty any to InitPropertySequence()

Regression from b1534edf (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
üst 95af5f51
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment