diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-12 12:32:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-12 12:32:56 +0100 |
commit | c880eb6b699ffda22231d008e3bcc842db32576f (patch) | |
tree | e4517ae413eaf353324d4c90b623a0f9da684d7f /connectivity | |
parent | 43c95611d2621d1f2f9d60b26c07aad25c62baed (diff) |
tweak assert and switch to squeak by NDEBUG and nonNDEBUG
Change-Id: I996d69d83acb77e96cb105f65a0243bd5fe80295
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 4 |
1 files 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: |