diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-27 14:49:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-27 14:49:38 +0200 |
commit | 5e9137c9635141430b946aae2d0317c432a471ef (patch) | |
tree | a1480435f271dd1de08c92456a5872368183717a /package | |
parent | aa279b32a8db69d00aa625714c3894f02ee9de26 (diff) |
These shall apparently check for URL scheme prefix match
...they had originally been
aURL.equalsIgnoreAsciiCaseAsciiL( "vnd.sun.star.pkg", 16 )
etc., so where likely confused with the OUString compareTo functions that take a
maxLength argument.
Change-Id: Ie12df4f589dda310b7e49eb93535ad797f88a8a7
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/xfactory.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx index 2aed9f796a13..db339ae1f315 100644 --- a/package/source/xstor/xfactory.cxx +++ b/package/source/xstor/xfactory.cxx @@ -139,7 +139,7 @@ uno::Reference< uno::XInterface > SAL_CALL OStorageFactory::createInstanceWithAr throw lang::IllegalArgumentException(); // TODO: } - if ( aURL.equalsIgnoreAsciiCase("vnd.sun.star.pkg") ) + if ( aURL.startsWithIgnoreAsciiCase("vnd.sun.star.pkg:") ) { OSL_FAIL( "Packages URL's are not valid for storages!\n" ); // ??? throw lang::IllegalArgumentException(); // TODO: |