shared: LooqsQuery: has*Search(): Mark methods const

This commit is contained in:
Albert S. 2022-06-13 22:43:23 +02:00
parent 0d2e518000
commit 1a39118470
2 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ QueryType LooqsQuery::getQueryType()
return static_cast<QueryType>(tokensMask & COMBINED); return static_cast<QueryType>(tokensMask & COMBINED);
} }
bool LooqsQuery::hasContentSearch() bool LooqsQuery::hasContentSearch() const
{ {
return (this->getTokensMask() & FILTER_CONTENT) == FILTER_CONTENT; return (this->getTokensMask() & FILTER_CONTENT) == FILTER_CONTENT;
} }
bool LooqsQuery::hasPathSearch() bool LooqsQuery::hasPathSearch() const
{ {
return (this->getTokensMask() & FILTER_PATH) == FILTER_PATH; return (this->getTokensMask() & FILTER_PATH) == FILTER_PATH;
} }

View File

@ -61,8 +61,8 @@ class LooqsQuery
{ {
this->limit = limit; this->limit = limit;
} }
bool hasContentSearch(); bool hasContentSearch() const;
bool hasPathSearch(); bool hasPathSearch() const;
void addSortCondition(SortCondition sc); void addSortCondition(SortCondition sc);
static bool checkParanthesis(QString query); static bool checkParanthesis(QString query);