diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-20 23:56:19 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-20 23:56:32 +0100 |
commit | bd9eaa10d31aac7a5a04e092a4cf744d36470d0a (patch) | |
tree | 025d4920077886f8dd843f4fb78c7d3c38d00860 /connectivity/source/drivers/macab | |
parent | f20ed8959bc0a984177377a734d34f767653625b (diff) |
Some cppcheck cleaning in connectivity
Change-Id: I72cf68b193a4d6b16255f8b92e4c0262cd6cac78
Diffstat (limited to 'connectivity/source/drivers/macab')
-rw-r--r-- | connectivity/source/drivers/macab/MacabStatement.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx b/connectivity/source/drivers/macab/MacabStatement.cxx index 12cf3f4cef20..170608c2fdf9 100644 --- a/connectivity/source/drivers/macab/MacabStatement.cxx +++ b/connectivity/source/drivers/macab/MacabStatement.cxx @@ -321,7 +321,6 @@ void MacabCommonStatement::setMacabFields(MacabResultSet *pResult) const throw(S void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQLException) { const OSQLParseNode *pParseNode; - MacabCondition *pCondition; pParseNode = m_aSQLIterator.getWhereTree(); if (pParseNode != NULL) @@ -332,7 +331,7 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ // support them, uncomment this line and fix resetParameters. //resetParameters(); pParseNode = pParseNode->getChild(1); - pCondition = analyseWhereClause(pParseNode); + MacabCondition *pCondition = analyseWhereClause(pParseNode); if (pCondition->isAlwaysTrue()) pResult->allMacabRecords(); else if (!pCondition->isAlwaysFalse()) @@ -349,7 +348,6 @@ void MacabCommonStatement::selectRecords(MacabResultSet *pResult) const throw(SQ void MacabCommonStatement::sortRecords(MacabResultSet *pResult) const throw(SQLException) { const OSQLParseNode *pParseNode; - MacabOrder *pOrder; pParseNode = m_aSQLIterator.getOrderTree(); if (pParseNode != NULL) @@ -357,7 +355,7 @@ void MacabCommonStatement::sortRecords(MacabResultSet *pResult) const throw(SQLE if (SQL_ISRULE(pParseNode, opt_order_by_clause)) { pParseNode = pParseNode->getChild(2); - pOrder = analyseOrderByClause(pParseNode); + MacabOrder *pOrder = analyseOrderByClause(pParseNode); pResult->sortMacabRecords(pOrder); delete pOrder; } |