diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-29 17:08:13 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-02 06:28:18 +0200 |
commit | ee1bbedcd98faa2d51437d1bb528b352edd44ed3 (patch) | |
tree | 990b31bf8a38883591ddc75384d08a774f9c5de7 /src/corelib/kernel/qtimer.h | |
parent | 8598e84c5f3035ab20c0d050fea310cbc689f0e9 (diff) |
Give QtPrivate::List a size value, simplify QFunctorSlotObject
The meta-programming list can easily know its size, so no need to pass
both a list and its size as template parameters to QFunctorSlotObject,
which simplifies existing code and is a step towards merging
QFunctorSlotObject and QSlotObject.
Also, remove the unused List_Select helper.
Change-Id: I8ec6a0b707eab531ec06aba4e82223f242e53f2f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qtimer.h')
-rw-r--r-- | src/corelib/kernel/qtimer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/kernel/qtimer.h b/src/corelib/kernel/qtimer.h index 5599b60bd7..a58eafa7d3 100644 --- a/src/corelib/kernel/qtimer.h +++ b/src/corelib/kernel/qtimer.h @@ -121,8 +121,7 @@ public: static_assert(int(SlotType::ArgumentCount) <= 0, "The slot must not have any arguments."); singleShotImpl(interval, timerType, context, - new QtPrivate::QFunctorSlotObject<Func1, 0, - typename QtPrivate::List_Left<void, 0>::Value, void>(std::move(slot))); + new QtPrivate::QFunctorSlotObject<Func1, QtPrivate::List<>, void>(std::move(slot))); } template <typename ... Args> |