From 1a39118470b00e13ac36acc40f5bf0ffef261482 Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 13 Jun 2022 22:43:23 +0200 Subject: [PATCH] shared: LooqsQuery: has*Search(): Mark methods const --- shared/looqsquery.cpp | 4 ++-- shared/looqsquery.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/looqsquery.cpp b/shared/looqsquery.cpp index fe6869d..3789054 100644 --- a/shared/looqsquery.cpp +++ b/shared/looqsquery.cpp @@ -23,12 +23,12 @@ QueryType LooqsQuery::getQueryType() return static_cast(tokensMask & COMBINED); } -bool LooqsQuery::hasContentSearch() +bool LooqsQuery::hasContentSearch() const { return (this->getTokensMask() & FILTER_CONTENT) == FILTER_CONTENT; } -bool LooqsQuery::hasPathSearch() +bool LooqsQuery::hasPathSearch() const { return (this->getTokensMask() & FILTER_PATH) == FILTER_PATH; } diff --git a/shared/looqsquery.h b/shared/looqsquery.h index 2ec19a8..d26091b 100644 --- a/shared/looqsquery.h +++ b/shared/looqsquery.h @@ -61,8 +61,8 @@ class LooqsQuery { this->limit = limit; } - bool hasContentSearch(); - bool hasPathSearch(); + bool hasContentSearch() const; + bool hasPathSearch() const; void addSortCondition(SortCondition sc); static bool checkParanthesis(QString query);