From 51d7f466df85f679f54e4e690f8b5e602192eb7b Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 30 Mar 2016 17:55:05 +0200 Subject: sfx2: make SfxDispatcher::Execute() less variadic ... ... and less overloaded; C++11 initializer_list should make undefined behavior as fixed in ba0a866b83f016fd460320e7d057dd107e019f19 less likely. Change-Id: I15cc0804451b6a4fcbfaa623f9a30db222207865 Reviewed-on: https://gerrit.libreoffice.org/23666 Tested-by: Jenkins Reviewed-by: Michael Stahl --- avmedia/source/framework/mediaplayer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'avmedia') diff --git a/avmedia/source/framework/mediaplayer.cxx b/avmedia/source/framework/mediaplayer.cxx index 5edfd67460d7..638b7b9dabeb 100644 --- a/avmedia/source/framework/mediaplayer.cxx +++ b/avmedia/source/framework/mediaplayer.cxx @@ -136,7 +136,8 @@ void MediaFloater::dispatchCurrentURL() url = mpMediaWindow->getURL(); } const SfxStringItem aMediaURLItem( SID_INSERT_AVMEDIA, url ); - pDispatcher->Execute(SID_INSERT_AVMEDIA, SfxCallMode::RECORD, &aMediaURLItem, nullptr); + pDispatcher->ExecuteList(SID_INSERT_AVMEDIA, SfxCallMode::RECORD, + { &aMediaURLItem }); } } -- cgit