mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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: 98468ae2d2
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>
|
template<typename IndexType, typename... Ts>
|
||||||
struct VisitImpl {
|
struct VisitImpl {
|
||||||
template<typename Visitor, IndexType CurrentIndex = 0>
|
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>;
|
using T = typename TypeList<Ts...>::template Type<CurrentIndex>;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue