diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-05 14:39:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 12:58:13 +0200 |
commit | fcd1637d5101b9142e6808edfb77b01122857901 (patch) | |
tree | 5fd09f97de80cf2a9481bd55a798015db35f1d0c /connectivity/source/cpool/Zregistration.cxx | |
parent | convert OUString !compareToAscii to equalsAscii (diff) | |
download | core-fcd1637d5101b9142e6808edfb77b01122857901.tar.gz core-fcd1637d5101b9142e6808edfb77b01122857901.zip |
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 'connectivity/source/cpool/Zregistration.cxx')
-rw-r--r-- | connectivity/source/cpool/Zregistration.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/cpool/Zregistration.cxx b/connectivity/source/cpool/Zregistration.cxx index 68039800a4d9..3d3d657d272a 100644 --- a/connectivity/source/cpool/Zregistration.cxx +++ b/connectivity/source/cpool/Zregistration.cxx @@ -38,7 +38,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL dbpool2_component_getFactory(const sal_Char* { void* pRet = NULL; - if (OPoolCollection::getImplementationName_Static().compareToAscii(_pImplName) == 0) + if (OPoolCollection::getImplementationName_Static().equalsAscii(_pImplName)) { Reference< XSingleServiceFactory > xFactory( ::cppu::createOneInstanceFactory( |