diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-26 15:19:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-27 08:33:44 +0200 |
commit | a1d10eb8d7ee73d901041fdf550d2196a63c9d1d (patch) | |
tree | ab16b54956475ac71320637d2c5bd6aef1cde72e /svx/source | |
parent | b3464e87ae2115e394d5a9f85b4aaf88d485d7f1 (diff) |
convert AVMEDIA_ constants to enum class
Change-Id: Ic4918f57a1575a24cf0b9251cc7e7c6180ee25fd
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdomedia.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/svdraw/svdomedia.cxx b/svx/source/svdraw/svdomedia.cxx index 2bead84706f1..05c5589c32fe 100644 --- a/svx/source/svdraw/svdomedia.cxx +++ b/svx/source/svdraw/svdomedia.cxx @@ -420,13 +420,13 @@ static bool lcl_HandlePackageURL( void SdrMediaObj::mediaPropertiesChanged( const ::avmedia::MediaItem& rNewProperties ) { bool bBroadcastChanged = false; - const sal_uInt32 nMaskSet = rNewProperties.getMaskSet(); + const AVMediaSetMask nMaskSet = rNewProperties.getMaskSet(); // use only a subset of MediaItem properties for own own properties - if( AVMEDIA_SETMASK_MIME_TYPE & nMaskSet ) + if( AVMediaSetMask::MIME_TYPE & nMaskSet ) m_xImpl->m_MediaProperties.setMimeType( rNewProperties.getMimeType() ); - if( ( AVMEDIA_SETMASK_URL & nMaskSet ) && + if( ( AVMediaSetMask::URL & nMaskSet ) && ( rNewProperties.getURL() != getURL() )) { m_xImpl->m_xCachedSnapshot.clear(); @@ -475,16 +475,16 @@ void SdrMediaObj::mediaPropertiesChanged( const ::avmedia::MediaItem& rNewProper bBroadcastChanged = true; } - if( AVMEDIA_SETMASK_LOOP & nMaskSet ) + if( AVMediaSetMask::LOOP & nMaskSet ) m_xImpl->m_MediaProperties.setLoop( rNewProperties.isLoop() ); - if( AVMEDIA_SETMASK_MUTE & nMaskSet ) + if( AVMediaSetMask::MUTE & nMaskSet ) m_xImpl->m_MediaProperties.setMute( rNewProperties.isMute() ); - if( AVMEDIA_SETMASK_VOLUMEDB & nMaskSet ) + if( AVMediaSetMask::VOLUMEDB & nMaskSet ) m_xImpl->m_MediaProperties.setVolumeDB( rNewProperties.getVolumeDB() ); - if( AVMEDIA_SETMASK_ZOOM & nMaskSet ) + if( AVMediaSetMask::ZOOM & nMaskSet ) m_xImpl->m_MediaProperties.setZoom( rNewProperties.getZoom() ); if( bBroadcastChanged ) |