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:
parent
2b99a71b22
commit
6608e63298
@ -1,4 +1,5 @@
|
||||
QT -= gui
|
||||
QT += core5compat
|
||||
CONFIG += cmdline
|
||||
|
||||
# Uncomment following to enable debug output
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user