QIconLoader: mark a helper type as movable
QIconDirInfo is held in Qt containers, so reap the performance benefit of a movable type. Change-Id: I317c69ec46d324623b21a33043856e22f60e21b1 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
28f7404256
commit
91f1b0b4e4
@ -62,6 +62,7 @@
|
||||
#include <private/qicon_p.h>
|
||||
#include <private/qfactoryloader_p.h>
|
||||
#include <QtCore/QHash>
|
||||
#include <QtCore/QTypeInfo>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@ -84,6 +85,7 @@ struct QIconDirInfo
|
||||
short threshold;
|
||||
Type type : 4;
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QIconDirInfo, Q_MOVABLE_TYPE);
|
||||
|
||||
class QIconLoaderEngineEntry
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user