Replace some matchAsciiL (and wrong lengths) with match
Change-Id: I6d0b5fa249cb466230183e11fc96a89fad69d45d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165310 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
9d1275974d
commit
f0c32a4de8
1 changed files with 3 additions and 3 deletions
|
@ -273,7 +273,7 @@ bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium,
|
|||
|
||||
if ( nBufSize && nBufSize == GetMetaFileBitsEx( pMF->hMF, nBufSize - 22, pBuf.get() + 22 ) )
|
||||
{
|
||||
if ( aFlavor.MimeType.matchAsciiL( "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"", 57 ) )
|
||||
if ( aFlavor.MimeType.match( "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"" ) )
|
||||
{
|
||||
aResult <<= uno::Sequence< sal_Int8 >( pBuf.get(), nBufSize );
|
||||
bAnyIsReady = true;
|
||||
|
@ -290,7 +290,7 @@ bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium,
|
|||
pBuf.reset(new sal_Int8[nBufSize]);
|
||||
if ( nBufSize && nBufSize == GetEnhMetaFileBits( aMedium.hEnhMetaFile, nBufSize, reinterpret_cast<LPBYTE>(pBuf.get()) ) )
|
||||
{
|
||||
if ( aFlavor.MimeType.matchAsciiL( "application/x-openoffice-emf;windows_formatname=\"Image EMF\"", 57 ) )
|
||||
if ( aFlavor.MimeType.match( "application/x-openoffice-emf;windows_formatname=\"Image EMF\"" ) )
|
||||
{
|
||||
aResult <<= uno::Sequence< sal_Int8 >( pBuf.get(), nBufSize );
|
||||
bAnyIsReady = true;
|
||||
|
@ -310,7 +310,7 @@ bool OleComponentNative_Impl::ConvertDataForFlavor( const STGMEDIUM& aMedium,
|
|||
pBuf.reset(new sal_Int8[nBufSize]);
|
||||
if ( nBufSize && nBufSize == sal::static_int_cast< ULONG >( GetBitmapBits( aMedium.hBitmap, nBufSize, pBuf.get() ) ) )
|
||||
{
|
||||
if ( aFlavor.MimeType.matchAsciiL( "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", 54 ) )
|
||||
if ( aFlavor.MimeType.match( "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ) )
|
||||
{
|
||||
aResult <<= uno::Sequence< sal_Int8 >( pBuf.get(), nBufSize );
|
||||
bAnyIsReady = true;
|
||||
|
|
Loading…
Reference in a new issue