From ef90021abe3735fba57145598fd7c3d359d2718e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Nov 2013 11:32:52 +0200 Subject: convert OUString !compareToAscii to equalsAscii Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b --- linguistic/workben/sspellimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linguistic/workben') diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx index ff8837ae97e8..77c8820d3634 100644 --- a/linguistic/workben/sspellimp.cxx +++ b/linguistic/workben/sspellimp.cxx @@ -466,7 +466,7 @@ void * SAL_CALL SpellChecker_getFactory( const sal_Char * pImplName, XMultiServiceFactory * pServiceManager, void * ) { void * pRet = 0; - if ( !SpellChecker::getImplementationName_Static().compareToAscii( pImplName ) ) + if ( SpellChecker::getImplementationName_Static().equalsAscii( pImplName ) ) { Reference< XSingleServiceFactory > xFactory = cppu::createOneInstanceFactory( -- cgit