QCollator(SortKey): declare as shared

This enables specialisations of (std and q) swap using member-swap
and declares the types movable for efficient use in Qt containers,
and QList in particular.

This is a binary-incompatible change, so cannot wait for 5.2.1.

Change-Id: I7e90b6397ac4d00d0a7a5c42bae166c1b43e1994
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2013-11-13 11:29:47 +01:00 committed by The Qt Project
parent 3e803b5180
commit 70bc2e882f
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ private:
void detach();
};
Q_DECLARE_SHARED(QCollatorSortKey)
Q_DECLARE_SHARED(QCollator)
QT_END_NAMESPACE
#endif // QCOLLATOR_P_H