summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-04 10:20:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 09:42:23 +0200
commit439004122498b34433e2394d1d9c55c7d3666ab5 (patch)
treecb89fadfe33778ba5f277feb2e9f51f1876fd76d /connectivity/source
parent875793d841165aaaaefa2c34b855e8f0f8a8c214 (diff)
enable -Wrange-loop-analysis on clang
Change-Id: I2095308943c94ad16c110d5fac47715398eb5d39 Reviewed-on: https://gerrit.libreoffice.org/80187 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/mork/MQueryHelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/mork/MQueryHelper.cxx b/connectivity/source/drivers/mork/MQueryHelper.cxx
index 4e64e08f2ad9..9077f49f7cc1 100644
--- a/connectivity/source/drivers/mork/MQueryHelper.cxx
+++ b/connectivity/source/drivers/mork/MQueryHelper.cxx
@@ -218,7 +218,7 @@ sal_Int32 MQueryHelper::executeQuery(OConnection* xConnection, MQueryExpression
entry->setValue(key, valueOUString);
}
bool result = true;
- for (auto const& elem : entryMatchedByExpression(this, &expr, entry.get()))
+ for (bool elem : entryMatchedByExpression(this, &expr, entry.get()))
{
result = result && elem;
}
@@ -296,7 +296,7 @@ std::vector<bool> entryMatchedByExpression(MQueryHelper* _aQuery, MQueryExpressi
MQueryExpression::bool_cond condition = queryExpression->getExpressionCondition();
if (condition == MQueryExpression::OR) {
bool result = false;
- for (auto const& elem : subquery_result)
+ for (bool elem : subquery_result)
{
result = result || elem;
}
@@ -304,7 +304,7 @@ std::vector<bool> entryMatchedByExpression(MQueryHelper* _aQuery, MQueryExpressi
} else {
assert(condition == MQueryExpression::AND && "only OR or AND should exist");
bool result = true;
- for (auto const& elem : subquery_result)
+ for (bool elem : subquery_result)
{
result = result && elem;
}