From 67d01fb5d4010a2486e47cdd9f55f38a2da162f2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 26 Feb 2012 14:58:33 +0100 Subject: Avoid temporary rtl::OUString --- sax/source/expatwrap/sax_expat.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sax/source') diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 677b7f59c8a2..487de5d6df34 100644 --- a/sax/source/expatwrap/sax_expat.cxx +++ b/sax/source/expatwrap/sax_expat.cxx @@ -1041,8 +1041,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL expwrap_component_getFactory( OUString aImplementationName = OUString::createFromAscii( pImplName ); - if (aImplementationName == - OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) ) ) + if (aImplementationName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( IMPLEMENTATION_NAME ) ) ) { xRet = createSingleFactory( xSMgr, aImplementationName, SaxExpatParser_CreateInstance, -- cgit