Prepare for removal of non-const operator[] from Sequence in avmedia
Change-Id: Iefa86987f6ce43610177b7c4122744d37386ad6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124335 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -133,18 +133,16 @@ bool MediaItem::GetPresentation( SfxItemPresentation,
|
||||
|
||||
bool MediaItem::QueryValue( css::uno::Any& rVal, sal_uInt8 ) const
|
||||
{
|
||||
uno::Sequence< uno::Any > aSeq( 10 );
|
||||
|
||||
aSeq[ 0 ] <<= m_pImpl->m_URL;
|
||||
aSeq[ 1 ] <<= static_cast<sal_uInt32>(m_pImpl->m_nMaskSet);
|
||||
aSeq[ 2 ] <<= static_cast< sal_Int32 >( m_pImpl->m_eState );
|
||||
aSeq[ 3 ] <<= m_pImpl->m_fTime;
|
||||
aSeq[ 4 ] <<= m_pImpl->m_fDuration;
|
||||
aSeq[ 5 ] <<= m_pImpl->m_nVolumeDB;
|
||||
aSeq[ 6 ] <<= m_pImpl->m_bLoop;
|
||||
aSeq[ 7 ] <<= m_pImpl->m_bMute;
|
||||
aSeq[ 8 ] <<= m_pImpl->m_eZoom;
|
||||
aSeq[ 9 ] <<= m_pImpl->m_sMimeType;
|
||||
uno::Sequence< uno::Any > aSeq{ uno::Any(m_pImpl->m_URL),
|
||||
uno::Any(static_cast<sal_uInt32>(m_pImpl->m_nMaskSet)),
|
||||
uno::Any(static_cast< sal_Int32 >( m_pImpl->m_eState )),
|
||||
uno::Any(m_pImpl->m_fTime),
|
||||
uno::Any(m_pImpl->m_fDuration),
|
||||
uno::Any(m_pImpl->m_nVolumeDB),
|
||||
uno::Any(m_pImpl->m_bLoop),
|
||||
uno::Any(m_pImpl->m_bMute),
|
||||
uno::Any(m_pImpl->m_eZoom),
|
||||
uno::Any(m_pImpl->m_sMimeType) };
|
||||
|
||||
rVal <<= aSeq;
|
||||
|
||||
|
@@ -415,7 +415,6 @@ void MediaWindowImpl::onURLChanged()
|
||||
if (mxPlayer.is())
|
||||
{
|
||||
Resize();
|
||||
uno::Sequence<uno::Any> aArgs( 3 );
|
||||
uno::Reference<media::XPlayerWindow> xPlayerWindow;
|
||||
const Point aPoint;
|
||||
const Size aSize(mpChildWindow->GetSizePixel());
|
||||
@@ -425,9 +424,11 @@ void MediaWindowImpl::onURLChanged()
|
||||
// tdf#139609 gtk doesn't need the handle, and fetching it is undesirable
|
||||
if (!pEnvData || pEnvData->toolkit != SystemEnvData::Toolkit::Gtk)
|
||||
nParentWindowHandle = mpChildWindow->GetParentWindowHandle();
|
||||
aArgs[0] <<= nParentWindowHandle;
|
||||
aArgs[1] <<= awt::Rectangle(aPoint.X(), aPoint.Y(), aSize.Width(), aSize.Height());
|
||||
aArgs[2] <<= reinterpret_cast<sal_IntPtr>(mpChildWindow.get());
|
||||
uno::Sequence<uno::Any> aArgs{
|
||||
uno::Any(nParentWindowHandle),
|
||||
uno::Any(awt::Rectangle(aPoint.X(), aPoint.Y(), aSize.Width(), aSize.Height())),
|
||||
uno::Any(reinterpret_cast<sal_IntPtr>(mpChildWindow.get()))
|
||||
};
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user