diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 11:25:49 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-27 11:25:49 +0200 |
commit | 577c2c344079c1a87d3d93be5f957e5f2d935bff (patch) | |
tree | d158857f9a832649e1c0b498b768a30d614fc613 /common/resourcefacade.cpp | |
parent | fd532607ef29aac49b52c861e5aecda6dfa19e82 (diff) | |
download | sink-577c2c344079c1a87d3d93be5f957e5f2d935bff.tar.gz sink-577c2c344079c1a87d3d93be5f957e5f2d935bff.zip |
Don't access the propertyFilter list directly.
Diffstat (limited to 'common/resourcefacade.cpp')
-rw-r--r-- | common/resourcefacade.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index 1c56fe5..391b1d1 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp | |||
@@ -68,7 +68,7 @@ LocalStorageQueryRunner<DomainType>::LocalStorageQueryRunner(const Query &query, | |||
68 | for (const auto &res : entries.keys()) { | 68 | for (const auto &res : entries.keys()) { |
69 | const auto type = entries.value(res); | 69 | const auto type = entries.value(res); |
70 | 70 | ||
71 | if (query.propertyFilter.contains("type") && query.propertyFilter.value("type").value.toByteArray() != type) { | 71 | if (query.hasFilter("type") && query.getFilter("type").value.toByteArray() != type) { |
72 | SinkTrace() << "Skipping due to type."; | 72 | SinkTrace() << "Skipping due to type."; |
73 | continue; | 73 | continue; |
74 | } | 74 | } |
@@ -76,7 +76,7 @@ LocalStorageQueryRunner<DomainType>::LocalStorageQueryRunner(const Query &query, | |||
76 | continue; | 76 | continue; |
77 | } | 77 | } |
78 | const auto configurationValues = mConfigStore.get(res); | 78 | const auto configurationValues = mConfigStore.get(res); |
79 | if (!matchesFilter(query.propertyFilter, configurationValues)){ | 79 | if (!matchesFilter(query.getBaseFilters(), configurationValues)){ |
80 | SinkTrace() << "Skipping due to filter."; | 80 | SinkTrace() << "Skipping due to filter."; |
81 | continue; | 81 | continue; |
82 | } | 82 | } |