diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index 5c388aebbd2..fd427db1b29 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -552,9 +552,8 @@ public: return QVariant(); QMetaType mt = QMetaType::fromType(); mt.registerType(); // we want the type stored in QVariant to always be registered - // T is a forwarding reference, so if T satifies the enable-ifery, - // we get this overload even if T is an lvalue reference and thus must check here - // Moreover, we only try to move if the type is actually moveable and not if T is const + + // We only try to move if the type is actually moveable and not if T is const // as in const int i; QVariant::fromValue(std::move(i)); if constexpr (std::conjunction_v, std::negation>>) return moveConstruct(QMetaType::fromType(), std::addressof(value));