diff options
Diffstat (limited to 'slideshow/source/engine/shapes/viewmediashape.cxx')
-rw-r--r-- | slideshow/source/engine/shapes/viewmediashape.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/slideshow/source/engine/shapes/viewmediashape.cxx b/slideshow/source/engine/shapes/viewmediashape.cxx index 2179f71ba78c..52a86be889d7 100644 --- a/slideshow/source/engine/shapes/viewmediashape.cxx +++ b/slideshow/source/engine/shapes/viewmediashape.cxx @@ -433,17 +433,19 @@ namespace slideshow::internal if( mxPlayer.is() ) { - uno::Sequence< uno::Any > aArgs( 3 ); sal_IntPtr nParentWindowHandle(0); const SystemEnvData* pEnvData = mpMediaWindow->GetSystemData(); // tdf#139609 gtk doesn't need the handle, and fetching it is undesirable if (!pEnvData || pEnvData->toolkit != SystemEnvData::Toolkit::Gtk) nParentWindowHandle = mpMediaWindow->GetParentWindowHandle(); - aArgs[ 0 ] <<= nParentWindowHandle; aAWTRect.X = aAWTRect.Y = 0; - aArgs[ 1 ] <<= aAWTRect; - aArgs[ 2 ] <<= reinterpret_cast< sal_IntPtr >( mpMediaWindow.get() ); + + uno::Sequence< uno::Any > aArgs{ + uno::Any(nParentWindowHandle), + uno::Any(aAWTRect), + uno::Any(reinterpret_cast< sal_IntPtr >( mpMediaWindow.get() )) + }; mxPlayerWindow.set( mxPlayer->createPlayerWindow( aArgs ) ); |