summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-01-21 19:57:19 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-01-21 19:58:46 +0100
commit22da27d9ddcdacaef21d667b0777052b7e817b9a (patch)
treee72e427eb7b6934b796179ed3e49ca4a8c8734a6 /connectivity
parentImprove checking for emptiness (while) (diff)
downloadcore-22da27d9ddcdacaef21d667b0777052b7e817b9a.tar.gz
core-22da27d9ddcdacaef21d667b0777052b7e817b9a.zip
Improve checking for emptiness
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mozab/MPreparedStatement.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mozab/MPreparedStatement.cxx b/connectivity/source/drivers/mozab/MPreparedStatement.cxx
index 2aa2dddb9750..e21ec2f803df 100644
--- a/connectivity/source/drivers/mozab/MPreparedStatement.cxx
+++ b/connectivity/source/drivers/mozab/MPreparedStatement.cxx
@@ -486,7 +486,7 @@ void OPreparedStatement::describeParameter()
{
::std::vector< OSQLParseNode*> aParseNodes;
scanParameter(m_pParseTree,aParseNodes);
- if(aParseNodes.size())
+ if(!aParseNodes.empty())
{
m_xParamColumns = new OSQLColumns();
const OSQLTables& xTabs = m_pSQLIterator->getTables();