From 0d78ad871e85a74a2a7eac2f2a2ff94776f35e77 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 7 Jul 2014 10:15:32 +0100 Subject: DBG_ASSERT->assert when followed by dereference Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e --- connectivity/source/parse/sqlnode.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index fa7f395e94d0..a80e8d4d94cb 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -1993,10 +1993,8 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition, bool case SQL_NODE_NOTEQUAL: pNewComparison = new OSQLParseNode(OUString("="),SQL_NODE_EQUAL,SQL_EQUAL); break; - default: - assert(false && "OSQLParseNode::negateSearchCondition: unexpected node type!"); - break; } + assert(pNewComparison && "OSQLParseNode::negateSearchCondition: unexpected node type!"); pSearchCondition->replace(pComparison, pNewComparison); delete pComparison; } -- cgit