mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-07-14 08:40:35 +03:00
Everywhere: Remove usages of template
keyword with no parameter list
These were made invalid with P1787, and Clang (19) trunk started warning on them with https://github.com/llvm/llvm-project/pull/80801.
This commit is contained in:
parent
9b5d1382bf
commit
397774d422
@ -88,7 +88,7 @@ public:
|
|||||||
template<typename TUnaryPredicate>
|
template<typename TUnaryPredicate>
|
||||||
bool remove_all_matching(TUnaryPredicate const& predicate)
|
bool remove_all_matching(TUnaryPredicate const& predicate)
|
||||||
{
|
{
|
||||||
return m_table.template remove_all_matching([&](auto& entry) {
|
return m_table.remove_all_matching([&](auto& entry) {
|
||||||
return predicate(entry.key, entry.value);
|
return predicate(entry.key, entry.value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -450,7 +450,7 @@ public:
|
|||||||
decltype(auto) downcast() const&
|
decltype(auto) downcast() const&
|
||||||
{
|
{
|
||||||
if constexpr (sizeof...(NewTs) == 1 && (IsSpecializationOf<NewTs, Variant> && ...)) {
|
if constexpr (sizeof...(NewTs) == 1 && (IsSpecializationOf<NewTs, Variant> && ...)) {
|
||||||
return (*this).template downcast_variant(TypeWrapper<NewTs...> {});
|
return (*this).downcast_variant(TypeWrapper<NewTs...> {});
|
||||||
} else {
|
} else {
|
||||||
Variant<NewTs...> instance { Variant<NewTs...>::invalid_index, Detail::VariantConstructTag {} };
|
Variant<NewTs...> instance { Variant<NewTs...>::invalid_index, Detail::VariantConstructTag {} };
|
||||||
visit([&](auto const& value) {
|
visit([&](auto const& value) {
|
||||||
|
@ -132,7 +132,7 @@ ErrorOr<T> decode(Decoder& decoder)
|
|||||||
|
|
||||||
for (size_t i = 0; i < size; ++i) {
|
for (size_t i = 0; i < size; ++i) {
|
||||||
auto value = TRY(decoder.decode<typename T::ValueType>());
|
auto value = TRY(decoder.decode<typename T::ValueType>());
|
||||||
vector.template unchecked_append(move(value));
|
vector.unchecked_append(move(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
return vector;
|
return vector;
|
||||||
|
@ -326,7 +326,7 @@ RegexResult Matcher<Parser>::match(Vector<RegexStringView> const& views, Optiona
|
|||||||
matches.resize(m_pattern->parser_result.capture_groups_count + 1);
|
matches.resize(m_pattern->parser_result.capture_groups_count + 1);
|
||||||
if (!input.regex_options.has_flag_set(AllFlags::SkipTrimEmptyMatches)) {
|
if (!input.regex_options.has_flag_set(AllFlags::SkipTrimEmptyMatches)) {
|
||||||
for (auto& matches : result.capture_group_matches)
|
for (auto& matches : result.capture_group_matches)
|
||||||
matches.template remove_all_matching([](auto& match) { return match.view.is_null(); });
|
matches.remove_all_matching([](auto& match) { return match.view.is_null(); });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result.capture_group_matches.clear_with_capacity();
|
result.capture_group_matches.clear_with_capacity();
|
||||||
|
@ -555,7 +555,7 @@ public:
|
|||||||
template<typename Callback>
|
template<typename Callback>
|
||||||
void for_each_child(Callback callback) const
|
void for_each_child(Callback callback) const
|
||||||
{
|
{
|
||||||
return const_cast<Node*>(this)->template for_each_child(move(callback));
|
return const_cast<Node*>(this)->for_each_child(move(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Callback>
|
template<typename Callback>
|
||||||
|
@ -219,7 +219,7 @@ public:
|
|||||||
template<typename Callback>
|
template<typename Callback>
|
||||||
void for_each_child(Callback callback) const
|
void for_each_child(Callback callback) const
|
||||||
{
|
{
|
||||||
return const_cast<TreeNode*>(this)->template for_each_child(move(callback));
|
return const_cast<TreeNode*>(this)->for_each_child(move(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Callback>
|
template<typename Callback>
|
||||||
|
Loading…
Reference in New Issue
Block a user