diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-07-09 08:34:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-07-09 09:15:52 +0200 |
commit | 010cf46e04907fa2503477ce4c0c85f465747034 (patch) | |
tree | 9e317f2dde9723098b23eaea5002d5012bd12462 /embeddedobj | |
parent | a45876adc36a3764cfeadb1737e5dcfb7ffee9da (diff) |
loplugin:indentation (clang-cl)
Change-Id: Iae559ca8bee9650c01167a4d1b918e18cbf03c28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118660
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index da5b02874b07..cbcc1f6e79d7 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -360,13 +360,13 @@ bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium, if ( pBuf && !bAnyIsReady ) { for ( auto const & supportedFormat : std::as_const(m_aSupportedGraphFormats) ) - if ( aFlavor.MimeType.match( supportedFormat.MimeType ) + if ( aFlavor.MimeType.match( supportedFormat.MimeType ) && aFlavor.DataType == supportedFormat.DataType && aFlavor.DataType == cppu::UnoType<uno::Sequence< sal_Int8 >>::get() ) - { - bAnyIsReady = ConvertBufferToFormat( pBuf.get(), nBufSize, aFormat, aResult ); - break; - } + { + bAnyIsReady = ConvertBufferToFormat( pBuf.get(), nBufSize, aFormat, aResult ); + break; + } } } @@ -612,7 +612,7 @@ void OleComponent::RetrieveObjectDataFlavors_Impl() if( hr2 == S_OK || hr2 == S_FALSE ) { for( sal_uInt32 nInd = 0; nInd < FORMATS_NUM; nInd++ ) - { + { if ( pElem[nInd].cfFormat == pFormatTemplates[nInd].cfFormat && pElem[nInd].tymed == pFormatTemplates[nInd].tymed ) nSupportedAspects |= pElem[nInd].dwAspect; |