embeddedobj/source/msole/olecomponent.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f0c32a4de8b18cc9f42bd441961ae4ae9fc72ceb
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Tue Mar 26 10:11:29 2024 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Mar 26 15:54:26 2024 +0100

    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.kagan...@collabora.com>

diff --git a/embeddedobj/source/msole/olecomponent.cxx 
b/embeddedobj/source/msole/olecomponent.cxx
index a19c9aa72b20..edbeebb3c0b3 100644
--- a/embeddedobj/source/msole/olecomponent.cxx
+++ b/embeddedobj/source/msole/olecomponent.cxx
@@ -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;

Reply via email to