Index: src/sycoca/kctimefactory.cpp =================================================================== --- src/sycoca/kctimefactory.cpp +++ src/sycoca/kctimefactory.cpp @@ -58,15 +58,18 @@ QStringList KCTimeDict::remainingResourceList() const { - QSet resources; + QStringList resources; + resources.reserve(m_hash.count()); Hash::const_iterator it = m_hash.constBegin(); const Hash::const_iterator end = m_hash.constEnd(); for (; it != end; ++it) { const QString key = it.key(); - const QString res = key.left(key.indexOf(QLatin1Char('|'))); - resources.insert(res); + QString res = key.left(key.indexOf(QLatin1Char('|'))); + if (!resources.contains(res)) { + resources.push_back(std::move(res)); + } } - return resources.toList(); + return resources; } void KCTimeDict::load(QDataStream &str)