mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-25 19:41:37 -08:00
Avoid creation of temporary containers
This commit is contained in:
1 parent
39b96c13e8
commit
2cf837801d
6 files changed
+15
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user