tweak assert and switch to squeak by NDEBUG and nonNDEBUG
Change-Id: I996d69d83acb77e96cb105f65a0243bd5fe80295
This commit is contained in:
@@ -1965,9 +1965,9 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition, bool
|
|||||||
switch(pComparison->getNodeType())
|
switch(pComparison->getNodeType())
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
assert(false && "OSQLParseNode::negateSearchCondition: unexpected node type!");
|
|
||||||
SAL_FALLTHROUGH;
|
|
||||||
case SQLNodeType::Equal:
|
case SQLNodeType::Equal:
|
||||||
|
assert(pComparison->getNodeType() == SQLNodeType::Equal &&
|
||||||
|
"OSQLParseNode::negateSearchCondition: unexpected node type!");
|
||||||
pNewComparison = new OSQLParseNode(OUString("<>"),SQLNodeType::NotEqual,SQL_NOTEQUAL);
|
pNewComparison = new OSQLParseNode(OUString("<>"),SQLNodeType::NotEqual,SQL_NOTEQUAL);
|
||||||
break;
|
break;
|
||||||
case SQLNodeType::Less:
|
case SQLNodeType::Less:
|
||||||
|
Reference in New Issue
Block a user