diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-02-06 22:35:30 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-02-07 09:50:16 +0000 |
commit | 9aaaa8427d5d9e9141e0b1b02595a6b96f37cb0c (patch) | |
tree | 430e780388bb6042dc0689b6b00c20a93367114e /src | |
parent | 140122533085c62dd7f2e59ddc6bf2933db19c93 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qcollator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qcollator.h b/src/corelib/tools/qcollator.h index 5ff74fd69a..d81c7c85e3 100644 --- a/src/corelib/tools/qcollator.h +++ b/src/corelib/tools/qcollator.h @@ -69,7 +69,7 @@ public: protected: QCollatorSortKey(QCollatorSortKeyPrivate*); - QSharedDataPointer<QCollatorSortKeyPrivate> d; + QExplicitlySharedDataPointer<QCollatorSortKeyPrivate> d; private: QCollatorSortKey(); |