From 6b89fd61006d345b41440f091b1e2e527784cf03 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 15 Mar 2019 20:30:23 +0100 Subject: [PATCH] song/StringFilter: make MatchWithoutNegation() public --- src/song/StringFilter.cxx | 2 +- src/song/StringFilter.hxx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/song/StringFilter.cxx b/src/song/StringFilter.cxx index 2f9c26039..9131595ae 100644 --- a/src/song/StringFilter.cxx +++ b/src/song/StringFilter.cxx @@ -22,7 +22,7 @@ #include -inline bool +bool StringFilter::MatchWithoutNegation(const char *s) const noexcept { #if !CLANG_CHECK_VERSION(3,6) diff --git a/src/song/StringFilter.hxx b/src/song/StringFilter.hxx index a1a281f3c..588e34bdb 100644 --- a/src/song/StringFilter.hxx +++ b/src/song/StringFilter.hxx @@ -105,7 +105,9 @@ public: gcc_pure bool Match(const char *s) const noexcept; -private: + /** + * Like Match(), but ignore the "negated" flag. + */ gcc_pure bool MatchWithoutNegation(const char *s) const noexcept; };