summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetaobject.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-08-20 20:10:43 -0700
committerThiago Macieira <thiago.macieira@intel.com>2025-08-28 14:41:10 -0700
commit7eff6ace6143e5bb44fa28c2fb98969bd5483c57 (patch)
tree84aea8fd4e6997d4ba559369a810fd535ab0c88a /src/corelib/kernel/qmetaobject.cpp
parentdce3c35c0782278e327f517de052baa75c8561bb (diff)
QtAlgorithms: rewrite the functions using q20bit.h
Which is constexpr on all platforms. Change-Id: I0680e712c96bc3131515fffd2fa97f2f76e0b253 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index 17a9856dfd2..8e11bd52578 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -2481,7 +2481,7 @@ bool QMetaMethod::isConst() const
*/
QMetaMethod::Access QMetaMethod::access() const
{
- constexpr int AccessShift = QtPrivate::qConstexprCountTrailingZeroBits(AccessMask);
+ constexpr int AccessShift = qCountTrailingZeroBits(AccessMask);
static_assert(AccessPrivate >> AccessShift == Private);
static_assert(AccessProtected >> AccessShift == Protected);
static_assert(AccessPublic >> AccessShift == Public);
@@ -2497,7 +2497,7 @@ QMetaMethod::Access QMetaMethod::access() const
*/
QMetaMethod::MethodType QMetaMethod::methodType() const
{
- constexpr int MethodShift = QtPrivate::qConstexprCountTrailingZeroBits(MethodTypeMask);
+ constexpr int MethodShift = qCountTrailingZeroBits(MethodTypeMask);
static_assert(MethodMethod >> MethodShift == Method);
static_assert(MethodSignal >> MethodShift == Signal);
static_assert(MethodSlot >> MethodShift == Slot);