From 5e9137c9635141430b946aae2d0317c432a471ef Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 27 Aug 2013 14:49:38 +0200 Subject: 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 --- package/source/xstor/xfactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package') 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: -- cgit