Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.3.2, 6.0
-
None
Description
The following code fails to compile, as expected with an error about using the deleted QVariant(void *) contructor:
QSharedPointer<QFile> obj(new QFile); QVariant var = QVariant(obj.data());
However, the following code compiles and creates a QVariant containing a boolean.
QSharedPointer<QFile> obj(new QFile); QVariant var = QVariant(obj);
Attachments
Issue Links
- relates to
-
QTBUG-113483 Consider implementing clazy warning for implicit construction of QVariant(bool)
-
- Reported
-