diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-12 16:48:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-13 07:38:03 +0100 |
commit | 1adb1a320a7e9832a41545bde13fd59d27ce7954 (patch) | |
tree | 1a36f83ce9ab9fee7f904d8ce210a2ee96f5ab76 /avmedia/source/viewer | |
parent | 5ea3a708c7d6a8088e438e021a07e5a6508daa74 (diff) |
loplugin:changetoolsgen in avmedia..basic
Change-Id: I4e355ae27b9fad1cc6e8f8f408dbd9e93d7256d7
Reviewed-on: https://gerrit.libreoffice.org/49603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia/source/viewer')
-rw-r--r-- | avmedia/source/viewer/mediawindow.cxx | 4 | ||||
-rw-r--r-- | avmedia/source/viewer/mediawindow_impl.cxx | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx index a3a61feaa2c5..df416bb96db7 100644 --- a/avmedia/source/viewer/mediawindow.cxx +++ b/avmedia/source/viewer/mediawindow.cxx @@ -328,8 +328,8 @@ bool MediaWindow::isMediaURL( const OUString& rURL, const OUString& rReferer, bo { const awt::Size aAwtSize( xPlayer->getPreferredPlayerWindowSize() ); - pPreferredSizePixel->Width() = aAwtSize.Width; - pPreferredSizePixel->Height() = aAwtSize.Height; + pPreferredSizePixel->setWidth( aAwtSize.Width ); + pPreferredSizePixel->setHeight( aAwtSize.Height ); } } } diff --git a/avmedia/source/viewer/mediawindow_impl.cxx b/avmedia/source/viewer/mediawindow_impl.cxx index c8af35df34bf..1d1f5fe946cb 100644 --- a/avmedia/source/viewer/mediawindow_impl.cxx +++ b/avmedia/source/viewer/mediawindow_impl.cxx @@ -296,8 +296,8 @@ Size MediaWindowImpl::getPreferredSize() const { awt::Size aPrefSize( mxPlayer->getPreferredPlayerWindowSize() ); - aRet.Width() = aPrefSize.Width; - aRet.Height() = aPrefSize.Height; + aRet.setWidth( aPrefSize.Width ); + aRet.setHeight( aPrefSize.Height ); } return aRet; @@ -532,7 +532,7 @@ void MediaWindowImpl::Resize() const sal_Int32 nControlHeight = mpMediaWindowControl->GetSizePixel().Height(); const sal_Int32 nControlY = std::max(aCurSize.Height() - nControlHeight - nOffset, 0L); - aPlayerWindowSize.Height() = (nControlY - (nOffset << 1)); + aPlayerWindowSize.setHeight( nControlY - (nOffset << 1) ); mpMediaWindowControl->SetPosSizePixel(Point(nOffset, nControlY ), Size(aCurSize.Width() - (nOffset << 1), nControlHeight)); } if (mpChildWindow) @@ -613,13 +613,13 @@ void MediaWindowImpl::Paint(vcl::RenderContext& rRenderContext, const tools::Rec if (fLogoWH < (double(aVideoRect.GetWidth()) / aVideoRect.GetHeight())) { - aLogoSize.Width() = long(aVideoRect.GetHeight() * fLogoWH); - aLogoSize.Height() = aVideoRect.GetHeight(); + aLogoSize.setWidth( long(aVideoRect.GetHeight() * fLogoWH) ); + aLogoSize.setHeight( aVideoRect.GetHeight() ); } else { - aLogoSize.Width() = aVideoRect.GetWidth(); - aLogoSize.Height()= long(aVideoRect.GetWidth() / fLogoWH); + aLogoSize.setWidth( aVideoRect.GetWidth() ); + aLogoSize.setHeight( long(aVideoRect.GetWidth() / fLogoWH) ); } } |