Prevent unnecessary memory allocations

This commit is contained in:
Josef Vitu
2017-09-24 11:45:58 +02:00
committed by Jonathan White
parent 852e89c0df
commit be312bbe4f
5 changed files with 13 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ QList<QString> EntryAttachments::keys() const
bool EntryAttachments::hasKey(const QString& key) const
{
return m_attachments.keys().contains(key);
return m_attachments.contains(key);
}
QList<QByteArray> EntryAttachments::values() const