diff --git a/include/albert/matcher.h b/include/albert/matcher.h index 9e040bb9..95f601a9 100644 --- a/include/albert/matcher.h +++ b/include/albert/matcher.h @@ -118,20 +118,18 @@ class ALBERT_EXPORT Matcher final const QString &string() const; /// - /// Returns a Match for `string`. + /// Returns a \ref Match for `string`. /// Match match(const QString &string) const; /// - /// Returns a Match for the given strings. + /// Returns the max \ref Match for the given strings. /// - template - Match match(QString first, Args... args) const { - return std::max(match(first), match(args...)); - } + Match match(QString first, auto... args) const + { return std::max(match(first), match(args...)); } /// - /// Returns the max match for `strings`. + /// Returns the max \ref Match in the range of `strings`. /// Match match(std::ranges::range auto &&strings) const requires std::same_as, QString>