Skip to content

Commit 64c16fa

Browse files
Make prefix filter operator const
1 parent 91ccdfb commit 64c16fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/prefix_filter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ prefix_filtert::prefix_filtert(
2323
{
2424
}
2525

26-
bool prefix_filtert::operator()(const std::string &value)
26+
bool prefix_filtert::operator()(const std::string &value) const
2727
{
2828
if(!included_prefixes.empty())
2929
{

src/util/prefix_filter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class prefix_filtert
2727
/// but doesn't match a prefix in `excluded_prefixes`.
2828
/// An empty vector of `included_prefixes` is treated as 'match all'.
2929
/// An empty vector of `excluded_prefixes` is treated as 'match nothing'.
30-
bool operator()(const std::string &value);
30+
bool operator()(const std::string &value) const;
3131

3232
protected:
3333
std::vector<std::string> included_prefixes;

0 commit comments

Comments
 (0)