summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 11:32:52 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:12 +0200
commitef90021abe3735fba57145598fd7c3d359d2718e (patch)
tree9da3ef32700774f56e0225ea28f3bc4ceaffe80c /ucb
parent0a9ef5a18e148c7a5c9a088e153a7873d1564841 (diff)
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
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_provider.cxx2
-rw-r--r--ucb/source/ucp/gio/gio_provider.cxx2
-rw-r--r--ucb/source/ucp/gvfs/gvfs_provider.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/cmis_provider.cxx b/ucb/source/ucp/cmis/cmis_provider.cxx
index 9938bb5875a8..dbf49d75f8f1 100644
--- a/ucb/source/ucp/cmis/cmis_provider.cxx
+++ b/ucb/source/ucp/cmis/cmis_provider.cxx
@@ -114,7 +114,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpcmis1_component_getFactory( c
(reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- if ( !::cmis::ContentProvider::getImplementationName_Static().compareToAscii( pImplName ) )
+ if ( ::cmis::ContentProvider::getImplementationName_Static().equalsAscii( pImplName ) )
xFactory = ::cmis::ContentProvider::createServiceFactory( xSMgr );
if ( xFactory.is() )
diff --git a/ucb/source/ucp/gio/gio_provider.cxx b/ucb/source/ucp/gio/gio_provider.cxx
index 6737417c9b9d..fa3c806a1b92 100644
--- a/ucb/source/ucp/gio/gio_provider.cxx
+++ b/ucb/source/ucp/gio/gio_provider.cxx
@@ -103,7 +103,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpgio1_component_getFactory( co
#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init();
#endif
- if ( !::gio::ContentProvider::getImplementationName_Static().compareToAscii( pImplName ) )
+ if ( ::gio::ContentProvider::getImplementationName_Static().equalsAscii( pImplName ) )
xFactory = ::gio::ContentProvider::createServiceFactory( xSMgr );
if ( xFactory.is() )
diff --git a/ucb/source/ucp/gvfs/gvfs_provider.cxx b/ucb/source/ucp/gvfs/gvfs_provider.cxx
index ec15ae0abee0..2b528edfad08 100644
--- a/ucb/source/ucp/gvfs/gvfs_provider.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_provider.cxx
@@ -152,7 +152,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpgvfs1_component_getFactory( c
(reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
- if ( !::gvfs::ContentProvider::getImplementationName_Static().compareToAscii( pImplName ) )
+ if ( ::gvfs::ContentProvider::getImplementationName_Static().equalsAscii( pImplName ) )
xFactory = ::gvfs::ContentProvider::createServiceFactory( xSMgr );
if ( xFactory.is() ) {