Details
-
Sub-task
-
Resolution: Fixed
-
P2: Important
-
None
-
e7aa32c8f (dev), e9a0f04ec (6.7)
Description
When a class/struct supports move semantics or they are value type, then no need to keep a pointer of them as a member in parent class.
Also it's better to use std::unique_ptr instead of QScopedPointer.
In the Lightning Viewer Example, some of these rules are not followed.
Attachments
For Gerrit Dashboard: QTBUG-121018 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
531197,4 | Lightning Viewer Example: Avoid Using Heap Memory When Is Not Necessary | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
531605,2 | Lightning Viewer Example: Avoid Using Heap Memory When Is Not Necessary | 6.7 | qt/qtdoc | Status: MERGED | +2 | 0 |