diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 16:59:40 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 17:07:46 +0400 |
commit | d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch) | |
tree | a99079bda02a9d8dd5bd0d54666164f362314c52 /ucb | |
parent | 704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff) |
Get rid of size() == 0
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_storage.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/NeonHeadRequest.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/NeonLockStore.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/NeonSession.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_storage.cxx b/ucb/source/ucp/tdoc/tdoc_storage.cxx index 3c64fbe0dcff..501f4e32fae0 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.cxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.cxx @@ -72,7 +72,7 @@ StorageElementFactory::StorageElementFactory( //========================================================================= StorageElementFactory::~StorageElementFactory() { - OSL_ENSURE( m_aMap.size() == 0, + OSL_ENSURE( m_aMap.empty(), "StorageElementFactory::~StorageElementFactory - Dangling storages!" ); } diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 21c59b306c06..cebd00a27b96 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -391,7 +391,7 @@ bool ContentProperties::containsAllNames( } } - return ( rNamesNotContained.size() == 0 ); + return ( rNamesNotContained.empty() ); } //========================================================================= diff --git a/ucb/source/ucp/webdav/NeonHeadRequest.cxx b/ucb/source/ucp/webdav/NeonHeadRequest.cxx index 58cf37bf0f6e..2db9be5314be 100644 --- a/ucb/source/ucp/webdav/NeonHeadRequest.cxx +++ b/ucb/source/ucp/webdav/NeonHeadRequest.cxx @@ -49,7 +49,7 @@ void process_headers( ne_request * req, rtl::OUString aHeaderValue( rtl::OUString::createFromAscii( value ) ); // Note: Empty vector means that all headers are requested. - bool bIncludeIt = ( rHeaderNames.size() == 0 ); + bool bIncludeIt = ( rHeaderNames.empty() ); if ( !bIncludeIt ) { diff --git a/ucb/source/ucp/webdav/NeonLockStore.cxx b/ucb/source/ucp/webdav/NeonLockStore.cxx index 53dd1b4d5099..1ad726aec039 100644 --- a/ucb/source/ucp/webdav/NeonLockStore.cxx +++ b/ucb/source/ucp/webdav/NeonLockStore.cxx @@ -98,7 +98,7 @@ NeonLockStore::~NeonLockStore() stopTicker(); // release active locks, if any. - OSL_ENSURE( m_aLockInfoMap.size() == 0, + OSL_ENSURE( m_aLockInfoMap.empty(), "NeonLockStore::~NeonLockStore - Releasing active locks!" ); LockInfoMap::const_iterator it( m_aLockInfoMap.begin() ); diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx index 3ab4d3924108..b80d665aeaca 100644 --- a/ucb/source/ucp/webdav/NeonSession.cxx +++ b/ucb/source/ucp/webdav/NeonSession.cxx @@ -1897,7 +1897,7 @@ void runResponseHeaderHandler( void * userdata, = static_cast< NeonRequestContext * >( userdata ); // Note: Empty vector means that all headers are requested. - bool bIncludeIt = ( pCtx->pHeaderNames->size() == 0 ); + bool bIncludeIt = ( pCtx->pHeaderNames->empty() ); if ( !bIncludeIt ) { |