[Libreoffice-commits] core.git: connectivity/source

Caolán McNamara caolanm at redhat.com
Thu May 12 11:33:23 UTC 2016


 connectivity/source/parse/sqlnode.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c880eb6b699ffda22231d008e3bcc842db32576f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu May 12 12:32:29 2016 +0100

    tweak assert and switch to squeak by NDEBUG and nonNDEBUG
    
    Change-Id: I996d69d83acb77e96cb105f65a0243bd5fe80295

diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index bf88799..7907e3f 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:


More information about the Libreoffice-commits mailing list