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
@@ -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