mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-01 00:30:17 -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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue