diff options
author | Sune Vuorela <sune@vuorela.dk> | 2016-06-16 00:16:51 +0200 |
---|---|---|
committer | Sune Vuorela <sune@vuorela.dk> | 2016-06-22 05:50:18 +0000 |
commit | 0731b64ee6d3439e6ddfa3ee58a7e909b170ebb0 (patch) | |
tree | 447e493057a196e028a93f55184cd0b9ee9280a8 | |
parent | 1fca91d6e61696003bfb43c0ce798033b2febb8f (diff) | |
download | qttools-0731b64ee6d3439e6ddfa3ee58a7e909b170ebb0.tar.gz |
Ensure FileFilterTable is filled ordered so we get the same qch file each time
This is part of making all of Qt reproducible
Change-Id: I18ea4cdc8b6a6e4a8962bae9cb71633bfd7b8ecd
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r-- | src/assistant/help/qhelpgenerator.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/assistant/help/qhelpgenerator.cpp b/src/assistant/help/qhelpgenerator.cpp index 7031faaa7..d2b76fff0 100644 --- a/src/assistant/help/qhelpgenerator.cpp +++ b/src/assistant/help/qhelpgenerator.cpp @@ -555,8 +555,10 @@ bool QHelpGenerator::insertFiles(const QStringList &files, const QString &rootPa d->query->exec(QLatin1String("BEGIN")); QMap<int, QSet<int> >::const_iterator it = tmpFileFilterMap.constBegin(); while (it != tmpFileFilterMap.constEnd()) { - QSet<int>::const_iterator si = it.value().constBegin(); - while (si != it.value().constEnd()) { + QList<int> filterValues = it.value().toList(); + std::sort(filterValues.begin(), filterValues.end()); + QList<int>::const_iterator si = filterValues.constBegin(); + while (si != filterValues.constEnd()) { d->query->prepare(QLatin1String("INSERT INTO FileFilterTable " "VALUES(?, ?)")); d->query->bindValue(0, *si); |