Fix build of util/glgen

Don't use QSet::toList(), and fix an obvious typo.
Also, core5compat is now needed due to the use of QRegExp.

Change-Id: I766455996c07d354e97a4ed4939f1774fc449331
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Joerg Bornemann 2022-05-05 15:30:47 +02:00
parent 2b99a71b22
commit 6608e63298
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
QT -= gui
QT += core5compat
CONFIG += cmdline
# Uncomment following to enable debug output

View File

@ -290,7 +290,7 @@ void LegacySpecParser::parseFunctions(QTextStream &stream)
}
}
m_versions = versions.toList();
m_versions = versions.values();
std::sort(m_versions.begin(), m_versions.end());
}

View File

@ -118,7 +118,7 @@ inline bool operator < (const VersionProfile &lhs, const VersionProfile &rhs)
return (lhs.version < rhs.version);
}
inline size_t Hash(const VersionProfile &v)
inline size_t qHash(const VersionProfile &v)
{
return qHash(static_cast<int>(v.profile * 1000) + v.version.major * 100 + v.version.minor * 10);
}