diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-11 10:06:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-11 10:07:08 +0200 |
commit | 776a3f14f2d987312b926ebc1ad09321a3a87f0d (patch) | |
tree | 09be8f37156fb9147e306dbd27d5dfa8e282c43f /ucb | |
parent | f60e521f24863643c7befed7f84db7d659c3c547 (diff) |
convert expressions like 'size() == 0' to 'empty()'
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfHeadReqProcImpl.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 300922e03070..1f352d53657a 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -446,7 +446,7 @@ shell::deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier ) it->second.notifier->remove( pNotifier ); - if( ! it->second.notifier->size() ) + if( it->second.notifier->empty() ) m_aContent.erase( it ); } diff --git a/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx index 03c686fd725d..30b16283c32e 100644 --- a/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx @@ -143,7 +143,7 @@ void SerfGetReqProcImpl::processSingleResponseHeader( const char* inHeaderName, bool bStoreHeaderField = false; - if ( mpHeaderNames->size() == 0 ) + if ( mpHeaderNames->empty() ) { // store all header fields bStoreHeaderField = true; diff --git a/ucb/source/ucp/webdav/SerfHeadReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfHeadReqProcImpl.cxx index 248a5c5d797f..9420a3968ed0 100644 --- a/ucb/source/ucp/webdav/SerfHeadReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfHeadReqProcImpl.cxx @@ -97,7 +97,7 @@ void SerfHeadReqProcImpl::processSingleResponseHeader( const char* inHeaderName, bool bStoreHeaderField = false; - if ( mpHeaderNames->size() == 0 ) + if ( mpHeaderNames->empty() ) { // store all header fields bStoreHeaderField = true; diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index a4d3ed38e4d7..fa1a41e30309 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -1206,7 +1206,7 @@ bool SerfSession::removeExpiredLocktoken( const OUString & /*inURL*/, PROPFIND( rEnv.m_aRequestURI, DAVZERO, aPropNames, aResources, rEnv ); - if ( aResources.size() == 0 ) + if ( aResources.empty() ) return false; std::vector< DAVPropertyValue >::const_iterator it |