[Libreoffice-commits] core.git: package/source

Stephan Bergmann sbergman at redhat.com
Fri Mar 15 10:46:39 PDT 2013


 package/source/zippackage/ZipPackage.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 29c49b37048e550f4ba1d6af21c118c6b96a9288
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Mar 15 18:41:58 2013 +0100

    compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareToAscii(s)
    
    ...broken with 2cbdaf677c0a1e88aa582c6a17b496dff61a78b0 "package: no more
    RTL_CONSTASCII_USTRINGPARAM in zippackage"
    
    Change-Id: I867b9be723d1fde374ade68355e6b66df3c19332

diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 26e7c46..c3561ab 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -385,7 +385,7 @@ void ZipPackage::parseManifest()
             if ( !bManifestParsed )
             {
                 // the manifest.xml could not be successfully parsed, this is an inconsistent package
-                if ( aPackageMediatype.compareToAscii("application/vnd.") == 0 )
+                if ( aPackageMediatype.startsWith("application/vnd.") )
                 {
                     // accept only types that look similar to own mediatypes
                     m_pRootFolder->SetMediaType( aPackageMediatype );


More information about the Libreoffice-commits mailing list