diff --git a/cockatrice/src/game/filters/filter_string.cpp b/cockatrice/src/game/filters/filter_string.cpp index 5e6bc0ee2..92966bab5 100644 --- a/cockatrice/src/game/filters/filter_string.cpp +++ b/cockatrice/src/game/filters/filter_string.cpp @@ -190,7 +190,7 @@ static void setupParserRules() search["StringValue"] = [](const peg::SemanticValues &sv) -> StringMatcher { // Extract common matching logic - auto createMatcher = [](const QString &target) -> std::function { + auto createMatcher = [](const QString &target) -> StringMatcher { return [target](const QString &s) -> bool { if (s.contains(target, Qt::CaseInsensitive)) { return true;