From c880eb6b699ffda22231d008e3bcc842db32576f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 12 May 2016 12:32:29 +0100 Subject: [PATCH] tweak assert and switch to squeak by NDEBUG and nonNDEBUG Change-Id: I996d69d83acb77e96cb105f65a0243bd5fe80295 --- connectivity/source/parse/sqlnode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index bf8879966fb2..7907e3f14325 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -1965,9 +1965,9 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition, bool switch(pComparison->getNodeType()) { default: - assert(false && "OSQLParseNode::negateSearchCondition: unexpected node type!"); - SAL_FALLTHROUGH; case SQLNodeType::Equal: + assert(pComparison->getNodeType() == SQLNodeType::Equal && + "OSQLParseNode::negateSearchCondition: unexpected node type!"); pNewComparison = new OSQLParseNode(OUString("<>"),SQLNodeType::NotEqual,SQL_NOTEQUAL); break; case SQLNodeType::Less: