QCommandLineOption: declare as shared

QCommandLineOptions are held in a QList in QCommandLineParser,
so they better be declared movable, which is one of the things
Q_DECLARE_SHARED enables.

Change-Id: I75c8185534b4e9c1ea4417a9507095c8a6512aab
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Marc Mutz 2013-10-05 02:26:30 +02:00 committed by The Qt Project
parent 6bbaeefb90
commit ae4c7be67d

View File

@ -87,6 +87,8 @@ private:
QSharedDataPointer<QCommandLineOptionPrivate> d;
};
Q_DECLARE_SHARED(QCommandLineOption)
QT_END_NAMESPACE
#endif // QCOMMANDLINEOPTION_H