summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_count.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-05 20:07:53 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-05 20:07:53 +0200
commit94829f17066dcbbeb9f641a4870dd88aa916ba24 (patch)
treecef0fef888e999cc840bbe90a9c155eae1b0890c /sinksh/syntax_modules/sink_count.cpp
parente470f65cad943f8a3065c6f5f6287adcc704627e (diff)
downloadsink-94829f17066dcbbeb9f641a4870dd88aa916ba24.tar.gz
sink-94829f17066dcbbeb9f641a4870dd88aa916ba24.zip
A better resource filter api
Diffstat (limited to 'sinksh/syntax_modules/sink_count.cpp')
-rw-r--r--sinksh/syntax_modules/sink_count.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp
index fde7c33..7e04c79 100644
--- a/sinksh/syntax_modules/sink_count.cpp
+++ b/sinksh/syntax_modules/sink_count.cpp
@@ -51,7 +51,7 @@ bool count(const QStringList &args, State &state)
51 51
52 Sink::Query query; 52 Sink::Query query;
53 for (const auto &res : resources) { 53 for (const auto &res : resources) {
54 query.resources << res.toLatin1(); 54 query.resourceFilter(res.toLatin1());
55 } 55 }
56 query.liveQuery = false; 56 query.liveQuery = false;
57 57