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:
parent
6f1eb0b2bc
commit
7ecb3d3f1a
@ -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(";
|
||||
|
Loading…
Reference in New Issue
Block a user