Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.3.1
-
None
Description
As discussed in QTBUG-103387 and https://codereview.qt-project.org/c/qt/qtbase/+/428958/4 , QTaggedPointer's usage of operator= with a raw pointer is error prone.
Such an operator should be removed and replaced with a setPointer method or similar, to avoid mistakes when the user meant to fully reset the pointer AND the tag.
(The implicitly-generated operator is fine. The problem is the user-declared one.)