diff options
author | Jack Lloyd <[email protected]> | 2022-02-04 18:05:34 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2022-02-06 08:52:16 -0500 |
commit | fbb7c5fba1bcde2460dda48c1423a23b3b3062bf (patch) | |
tree | c0b9cd348067f0813d80e9b1b23b149d1a0d0af2 /src/lib/psk_db | |
parent | 3c8d79246c7c5c57296d3165922b58aad401e5e3 (diff) |
Fix clang-tidy performance warnings
Diffstat (limited to 'src/lib/psk_db')
-rw-r--r-- | src/lib/psk_db/psk_db.cpp | 2 | ||||
-rw-r--r-- | src/lib/psk_db/psk_db_sql.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/psk_db/psk_db.cpp b/src/lib/psk_db/psk_db.cpp index 21f3a099e..0597cca15 100644 --- a/src/lib/psk_db/psk_db.cpp +++ b/src/lib/psk_db/psk_db.cpp @@ -34,7 +34,7 @@ std::set<std::string> Encrypted_PSK_Database::list_names() const std::set<std::string> names; - for(std::string enc_name : encrypted_names) + for(const std::string& enc_name : encrypted_names) { try { diff --git a/src/lib/psk_db/psk_db_sql.cpp b/src/lib/psk_db/psk_db_sql.cpp index 92dcb5f1d..8d63d3c49 100644 --- a/src/lib/psk_db/psk_db_sql.cpp +++ b/src/lib/psk_db/psk_db_sql.cpp @@ -13,7 +13,7 @@ Encrypted_PSK_Database_SQL::Encrypted_PSK_Database_SQL(const secure_vector<uint8 std::shared_ptr<SQL_Database> db, const std::string& table_name) : Encrypted_PSK_Database(master_key), - m_db(db), + m_db(std::move(db)), m_table_name(table_name) { m_db->create_table( |