summaryrefslogtreecommitdiff
path: root/unoxml/source/service
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 14:39:55 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:13 +0200
commitfcd1637d5101b9142e6808edfb77b01122857901 (patch)
tree5fd09f97de80cf2a9481bd55a798015db35f1d0c /unoxml/source/service
parentef90021abe3735fba57145598fd7c3d359d2718e (diff)
convert OUString compareToAscii == 0 to equalsAscii
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
Diffstat (limited to 'unoxml/source/service')
-rw-r--r--unoxml/source/service/services.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/service/services.cxx b/unoxml/source/service/services.cxx
index bc60fa5bc7bc..8978309bc734 100644
--- a/unoxml/source/service/services.cxx
+++ b/unoxml/source/service/services.cxx
@@ -54,28 +54,28 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL unoxml_component_getFactory(const sal_Char *
Reference< XMultiServiceFactory > xServiceManager(
reinterpret_cast< XMultiServiceFactory* >(pServiceManager));
- if (CDocumentBuilder::_getImplementationName().compareToAscii( pImplementationName ) == 0 )
+ if (CDocumentBuilder::_getImplementationName().equalsAscii( pImplementationName ) )
{
xFactory = Reference< XSingleServiceFactory >(
cppu::createOneInstanceFactory(
xServiceManager, CDocumentBuilder::_getImplementationName(),
CDocumentBuilder::_getInstance, CDocumentBuilder::_getSupportedServiceNames()));
}
- else if (CSAXDocumentBuilder::_getImplementationName().compareToAscii( pImplementationName ) == 0 )
+ else if (CSAXDocumentBuilder::_getImplementationName().equalsAscii( pImplementationName ) )
{
xFactory = Reference< XSingleServiceFactory >(
cppu::createSingleFactory(
xServiceManager, CSAXDocumentBuilder::_getImplementationName(),
CSAXDocumentBuilder::_getInstance, CSAXDocumentBuilder::_getSupportedServiceNames()));
}
- else if (CXPathAPI::_getImplementationName().compareToAscii( pImplementationName ) == 0 )
+ else if (CXPathAPI::_getImplementationName().equalsAscii( pImplementationName ) )
{
xFactory = Reference< XSingleServiceFactory >(
cppu::createSingleFactory(
xServiceManager, CXPathAPI::_getImplementationName(),
CXPathAPI::_getInstance, CXPathAPI::_getSupportedServiceNames()));
}
- else if (CTestListener::_getImplementationName().compareToAscii( pImplementationName ) == 0 )
+ else if (CTestListener::_getImplementationName().equalsAscii( pImplementationName ) )
{
xFactory = Reference< XSingleServiceFactory >(
cppu::createSingleFactory(