Skip to content

Make prefix filter operator const [TG-8603] #4971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/util/prefix_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ prefix_filtert::prefix_filtert(
{
}

bool prefix_filtert::operator()(const std::string &value)
bool prefix_filtert::operator()(const std::string &value) const
{
if(!included_prefixes.empty())
{
Expand Down
2 changes: 1 addition & 1 deletion src/util/prefix_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class prefix_filtert
/// but doesn't match a prefix in `excluded_prefixes`.
/// An empty vector of `included_prefixes` is treated as 'match all'.
/// An empty vector of `excluded_prefixes` is treated as 'match nothing'.
bool operator()(const std::string &value);
bool operator()(const std::string &value) const;

protected:
std::vector<std::string> included_prefixes;
Expand Down