summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/mork/MQueryHelper.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/connectivity/source/drivers/mork/MQueryHelper.cxx b/connectivity/source/drivers/mork/MQueryHelper.cxx
index 307613f936fd..f53e7e619cef 100644
--- a/connectivity/source/drivers/mork/MQueryHelper.cxx
+++ b/connectivity/source/drivers/mork/MQueryHelper.cxx
@@ -308,15 +308,14 @@ std::vector<bool> entryMatchedByExpression(MQueryHelper* _aQuery, MQueryExpressi
result = result || elem;
}
resultVector.push_back(result);
- } else if (condition == MQueryExpression::AND) {
+ } else {
+ assert(condition == MQueryExpression::AND && "only OR or AND should exist");
bool result = true;
for (auto const& elem : subquery_result)
{
result = result && elem;
}
resultVector.push_back(result);
- } else {
- OSL_FAIL("Unknown Expression Type");
}
}
else {