From d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 Mon Sep 17 00:00:00 2001 From: Elton Chung Date: Sun, 19 Feb 2012 16:59:40 +0400 Subject: Get rid of size() == 0 --- stoc/source/corereflection/crefl.cxx | 2 +- stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx | 2 +- stoc/source/tdmanager/tdmgr.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'stoc') diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index eb35840b1642..1296ccd1ec70 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -159,7 +159,7 @@ void IdlReflectionServiceImpl::dispose() MutexGuard aGuard( _aComponentMutex ); _aElements.clear(); #ifdef TEST_LIST_CLASSES - OSL_ENSURE( g_aClassNames.size() == 0, "### idl classes still alive!" ); + OSL_ENSURE( g_aClassNames.empty(), "### idl classes still alive!" ); ClassNameList::const_iterator iPos( g_aClassNames.begin() ); while (iPos != g_aClassNames.end()) { diff --git a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx index d5bcd9b08575..cfc59a186b77 100644 --- a/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx +++ b/stoc/source/registry_tdprovider/rdbtdp_tdenumeration.cxx @@ -171,7 +171,7 @@ TypeDescriptionEnumerationImpl::createInstance( if ( !bOpenKeySucceeded ) throw reflection::NoSuchTypeNameException(); - if ( aModuleKeys.size() == 0 ) + if ( aModuleKeys.empty() ) throw reflection::InvalidTypeNameException(); return rtl::Reference< TypeDescriptionEnumerationImpl >( diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx index d3d5ced731d5..e8a8256395c3 100644 --- a/stoc/source/tdmanager/tdmgr.cxx +++ b/stoc/source/tdmanager/tdmgr.cxx @@ -290,7 +290,7 @@ ManagerImpl::ManagerImpl( //__________________________________________________________________________________________________ ManagerImpl::~ManagerImpl() { - OSL_ENSURE( _aProviders.size() == 0, "### still providers left!" ); + OSL_ENSURE( _aProviders.empty(), "### still providers left!" ); OSL_TRACE( "> TypeDescriptionManager shut down. <" ); ::g_moduleCount.modCnt.release( &::g_moduleCount.modCnt ); } -- cgit