mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 03:46:49 -08:00
Improve performance of a few for-loops
Some for-loops needlessly copied the collection they were looping over.
This commit is contained in:
5 files changed
+11
-11
No files matched your search
@@ -38,7 +38,7 @@ SSHAgent::SSHAgent(QObject* parent)
|
||||
|
||||
SSHAgent::~SSHAgent()
|
||||
{
|
||||
for (QSet<OpenSSHKey> keys : m_keys.values()) {
|
||||
for (const QSet<OpenSSHKey>& keys : m_keys.values()) {
|
||||
for (OpenSSHKey key : keys) {
|
||||
removeIdentity(key);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user