summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /connectivity
parentST_InfoListReader and ST_InfoListWriter seem to be unused (diff)
downloadcore-d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6.tar.gz
core-d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6.zip
Get rid of size() == 0
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/fanalyzer.cxx2
-rw-r--r--connectivity/source/drivers/file/fcomp.cxx4
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/fanalyzer.cxx b/connectivity/source/drivers/file/fanalyzer.cxx
index b954b61e764f..d5f327d906da 100644
--- a/connectivity/source/drivers/file/fanalyzer.cxx
+++ b/connectivity/source/drivers/file/fanalyzer.cxx
@@ -263,7 +263,7 @@ void OSQLAnalyzer::describeParam(::rtl::Reference<OSQLColumns> rParameterColumns
OOperand* pOperand = aCodeStack.top();
aCodeStack.pop();
- OSL_ENSURE(aCodeStack.size() == 0, "StackFehler");
+ OSL_ENSURE(aCodeStack.empty(), "StackFehler");
OSL_ENSURE(pOperand, "StackFehler");
if (IS_TYPE(OOperandResult,pOperand))
delete pOperand;
diff --git a/connectivity/source/drivers/file/fcomp.cxx b/connectivity/source/drivers/file/fcomp.cxx
index 84e7c8b88d00..b984e3f9fa3d 100644
--- a/connectivity/source/drivers/file/fcomp.cxx
+++ b/connectivity/source/drivers/file/fcomp.cxx
@@ -578,7 +578,7 @@ sal_Bool OPredicateInterpreter::evaluate(OCodeList& rCodeList)
OOperand* pOperand = m_aStack.top();
m_aStack.pop();
- DBG_ASSERT(m_aStack.size() == 0, "StackFehler");
+ DBG_ASSERT(m_aStack.empty(), "StackFehler");
DBG_ASSERT(pOperand, "StackFehler");
bResult = pOperand->isValid();
@@ -605,7 +605,7 @@ void OPredicateInterpreter::evaluateSelection(OCodeList& rCodeList,ORowSetValueD
OOperand* pOperand = m_aStack.top();
m_aStack.pop();
- DBG_ASSERT(m_aStack.size() == 0, "StackFehler");
+ DBG_ASSERT(m_aStack.empty(), "StackFehler");
DBG_ASSERT(pOperand, "StackFehler");
(*_rVal) = pOperand->getValue();
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
index 346dcc0bbbfd..16787167476b 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
@@ -300,7 +300,7 @@ namespace connectivity
//default profile setted in mozilla registry
return m_Product.mCurrentProfileName;
}
- if (m_Product.mProfileList.size() == 0)
+ if (m_Product.mProfileList.empty())
{
//there are not any profiles
return ::rtl::OUString();
diff --git a/connectivity/source/drivers/postgresql/pq_tools.hxx b/connectivity/source/drivers/postgresql/pq_tools.hxx
index 152d0055054a..fd72b8082395 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.hxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.hxx
@@ -197,7 +197,7 @@ public:
template < typename T, typename Allocator > com::sun::star::uno::Sequence<T> sequence_of_vector ( const std::vector<T, Allocator> &vec )
{
- if ( vec.size() == 0 )
+ if ( vec.empty() )
return com::sun::star::uno::Sequence<T>();
else
return com::sun::star::uno::Sequence<T>( &vec[0], vec.size());