mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Variant: Remove redundant inline keyword
Problem: - `constexpr inline` is redundant because `constexpr` implies `inline`. Solution: - Remove redundancy.
This commit is contained in:
parent
3bbae6c18b
commit
98468ae2d2
Notes:
sideshowbarker
2024-07-18 17:42:29 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/98468ae2d2a Pull-request: https://github.com/SerenityOS/serenity/pull/7319
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ struct Variant<IndexType, InitialIndex> {
|
|||
template<typename IndexType, typename... Ts>
|
||||
struct VisitImpl {
|
||||
template<typename Visitor, IndexType CurrentIndex = 0>
|
||||
static constexpr inline decltype(auto) visit(IndexType id, const void* data, Visitor&& visitor) requires(CurrentIndex < sizeof...(Ts))
|
||||
static constexpr decltype(auto) visit(IndexType id, const void* data, Visitor&& visitor) requires(CurrentIndex < sizeof...(Ts))
|
||||
{
|
||||
using T = typename TypeList<Ts...>::template Type<CurrentIndex>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue