From 180f0791daa3d3f959f4f70b9f83012bcbf47a64 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 12:06:16 +0100 Subject: comphelper: Use appropriate OUString functions on string constants Change-Id: Id1d5c3cf2f76dbb33606cec1c0f17d4a1f282247 --- package/source/xstor/xfactory.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/source/xstor') diff --git a/package/source/xstor/xfactory.cxx b/package/source/xstor/xfactory.cxx index 54905ab305dc..11391e4897e9 100644 --- a/package/source/xstor/xfactory.cxx +++ b/package/source/xstor/xfactory.cxx @@ -203,11 +203,11 @@ uno::Reference< uno::XInterface > SAL_CALL OStorageFactory::createInstanceWithAr sal_Int32 nFormatID = 0; if ( aDescr[nInd].Value >>= aFormatName ) { - if ( aFormatName.equals( PACKAGE_STORAGE_FORMAT_STRING ) ) + if ( aFormatName == PACKAGE_STORAGE_FORMAT_STRING ) nStorageType = embed::StorageFormats::PACKAGE; - else if ( aFormatName.equals( ZIP_STORAGE_FORMAT_STRING ) ) + else if ( aFormatName == ZIP_STORAGE_FORMAT_STRING ) nStorageType = embed::StorageFormats::ZIP; - else if ( aFormatName.equals( OFOPXML_STORAGE_FORMAT_STRING ) ) + else if ( aFormatName == OFOPXML_STORAGE_FORMAT_STRING ) nStorageType = embed::StorageFormats::OFOPXML; else throw lang::IllegalArgumentException( THROW_WHERE, uno::Reference< uno::XInterface >(), 1 ); -- cgit