mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-09 04:21:08 -05:00
Avoid creation of temporary containers
This commit is contained in:
parent
39b96c13e8
commit
2cf837801d
6 changed files with 15 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue