Avoid creation of temporary containers

This commit is contained in:
Gianluca Recchia authored and Jonathan White committed 2019-01-30 09:50:10 -05:00
1 parent 39b96c13e8
commit 2cf837801d
6 files changed
+15 -7

No files matched your search

+3 -1
View File
@@ -17,6 +17,8 @@
#include "EntryAttachments.h"
#include "core/Global.h"
#include <QSet>
#include <QStringList>
@@ -37,7 +39,7 @@ bool EntryAttachments::hasKey(const QString& key) const
QSet<QByteArray> EntryAttachments::values() const
{
return m_attachments.values().toSet();
return asConst(m_attachments).values().toSet();
}
QByteArray EntryAttachments::value(const QString& key) const