diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-05 11:06:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 12:58:12 +0200 |
commit | 0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch) | |
tree | 3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /cppuhelper | |
parent | 7944301424aac0943e4ecc0410f495b210ad3b79 (diff) |
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
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/implementationentry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/implementationentry.cxx b/cppuhelper/source/implementationentry.cxx index 7a84d45ff8cd..aa587fc59d29 100644 --- a/cppuhelper/source/implementationentry.cxx +++ b/cppuhelper/source/implementationentry.cxx @@ -69,7 +69,7 @@ void * component_getFactoryHelper( for( sal_Int32 i = 0 ; entries[i].create ; i ++ ) { OUString implName = entries[i].getImplementationName(); - if( 0 == implName.compareToAscii( pImplName ) ) + if( implName.equalsAscii( pImplName ) ) { xFactory = entries[i].createFactory( entries[i].create, |