Simplify memory management of two private data members

Authored by sander on Sep 5 2018, 11:53 AM.

Description

Simplify memory management of two private data members

  • Use a QPixmap object instead of a QPixmap* Quote from the QPixmap documentation: "QPixmap objects can be passed around by value since the QPixmap class uses implicit data sharing."
  • Replace another pointer by std::unique_ptr

Differential Revision: https://phabricator.kde.org/D15301

Details

Committed
sanderSep 12 2018, 12:17 PM
Differential Revision
D15301: Use std::unique_ptr for two private data members
Parents
R223:0128f33f43eb: Fix isNull check for RegularArea
Branches
Unknown
Tags
Unknown