tweak assert and switch to squeak by NDEBUG and nonNDEBUG

Change-Id: I996d69d83acb77e96cb105f65a0243bd5fe80295
This commit is contained in:
Caolán McNamara 2016-05-12 12:32:29 +01:00
parent 43c95611d2
commit c880eb6b69

View File

@ -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: