From 496bd9e9755f4636aa4086af7942feee023ff780 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 31 May 2023 09:49:28 +0200 Subject: [PATCH] QVariant: remove outdated docs about reimplementing clear() QVariant::clear() hasn't been virtual since at least Qt 4... Pick-to: 6.5 6.2 5.15 Change-Id: If6b5669d91f8d9c7ed2d152d18852a8d6f8e491a Reviewed-by: Giuseppe D'Angelo Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qvariant.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index d4a7c91640..2bce58703a 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -498,11 +498,6 @@ void QVariant::create(QMetaType type, const void *copy) \fn QVariant::~QVariant() Destroys the QVariant and the contained object. - - Note that subclasses that reimplement clear() should reimplement - the destructor to call clear(). This destructor calls clear(), but - because it is the destructor, QVariant::clear() is called rather - than a subclass's clear(). */ QVariant::~QVariant()