From 0a9ef5a18e148c7a5c9a088e153a7873d1564841 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Nov 2013 11:06:18 +0200 Subject: convert OUString 0==compareToAscii to equalsAscii Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07 --- sdext/source/pdfimport/services.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/services.cxx b/sdext/source/pdfimport/services.cxx index 75c6e0649e0f..156244fc5677 100644 --- a/sdext/source/pdfimport/services.cxx +++ b/sdext/source/pdfimport/services.cxx @@ -122,7 +122,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL pdfimport_component_getFactory( const ComponentDescription* pComponents = lcl_getComponents(); while ( pComponents->pAsciiServiceName != NULL ) { - if ( 0 == sImplementationName.compareToAscii( pComponents->pAsciiImplementationName ) ) + if ( sImplementationName.equalsAscii( pComponents->pAsciiImplementationName ) ) { Sequence< OUString > sServices(1); sServices[0] = OUString::createFromAscii( pComponents->pAsciiServiceName ); -- cgit v1.2.3