QCollatorSortKey: use QExplicitlySharedDataPointer as pImpl

The key is immutable except for assignment and swap,
so don't run the risk of auto-detaching and use the
explicit-detach version of QSharedDataPointer.

Change-Id: Ib2cfe5981e6dfe375d6208289ff58247ef9d4870
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Marc Mutz 2017-02-06 22:35:30 +01:00
parent 1401225330
commit 9aaaa8427d
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public:
protected:
QCollatorSortKey(QCollatorSortKeyPrivate*);
QSharedDataPointer<QCollatorSortKeyPrivate> d;
QExplicitlySharedDataPointer<QCollatorSortKeyPrivate> d;
private:
QCollatorSortKey();