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

@ -18,6 +18,8 @@
#include "EntryAttributes.h"
#include "core/Global.h"
const QString EntryAttributes::TitleKey = "Title";
const QString EntryAttributes::UserNameKey = "UserName";
const QString EntryAttributes::PasswordKey = "Password";
@ -72,7 +74,7 @@ bool EntryAttributes::contains(const QString& key) const
bool EntryAttributes::containsValue(const QString& value) const
{
return m_attributes.values().contains(value);
return asConst(m_attributes).values().contains(value);
}
bool EntryAttributes::isProtected(const QString& key) const