QPlatformFontDatabase: Don't copy metaobjects

This is expensive and unnecessary here.

Change-Id: I542c0309db5839c696f51b066cd5423a63468438
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2021-10-06 10:02:58 +02:00
parent 6f1eb0b2bc
commit 7ecb3d3f1a

View File

@ -165,8 +165,8 @@ QSupportedWritingSystems &QSupportedWritingSystems::operator=(const QSupportedWr
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug debug, const QSupportedWritingSystems &sws)
{
QMetaObject mo = QFontDatabase::staticMetaObject;
QMetaEnum me = mo.enumerator(mo.indexOfEnumerator("WritingSystem"));
const QMetaObject *mo = &QFontDatabase::staticMetaObject;
QMetaEnum me = mo->enumerator(mo->indexOfEnumerator("WritingSystem"));
QDebugStateSaver saver(debug);
debug.nospace() << "QSupportedWritingSystems(";