Avoid creation of temporary containers

This commit is contained in:
Gianluca Recchia 2019-01-17 07:23:22 +01:00 committed by Jonathan White
parent 39b96c13e8
commit 2cf837801d
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
6 changed files with 15 additions and 7 deletions

View file

@ -124,8 +124,8 @@ void KdbxXmlReader::readDatabase(QIODevice* device, Database* db, KeePass2Random
qWarning("KdbxXmlReader::readDatabase: found %d invalid entry reference(s)", m_tmpParent->children().size());
}
const QSet<QString> poolKeys = m_binaryPool.keys().toSet();
const QSet<QString> entryKeys = m_binaryMap.keys().toSet();
const QSet<QString> poolKeys = asConst(m_binaryPool).keys().toSet();
const QSet<QString> entryKeys = asConst(m_binaryMap).keys().toSet();
const QSet<QString> unmappedKeys = entryKeys - poolKeys;
const QSet<QString> unusedKeys = poolKeys - entryKeys;