From 010cf46e04907fa2503477ce4c0c85f465747034 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 9 Jul 2021 08:34:31 +0200 Subject: loplugin:indentation (clang-cl) Change-Id: Iae559ca8bee9650c01167a4d1b918e18cbf03c28 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118660 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- embeddedobj/source/msole/olecomponent.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'embeddedobj') 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>::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; -- cgit