Fix clang-tidy performance-unnecessary-copy-initialization warnings

This commit is contained in:
MarcoFalke
2023-05-09 11:26:58 +02:00
parent faaa60a30e
commit fa28850562
4 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ bool ExternalSigner::Enumerate(const std::string& command, std::vector<ExternalS
if (fingerprint.isNull()) {
throw std::runtime_error(strprintf("'%s' received invalid response, missing signer fingerprint", command));
}
const std::string fingerprintStr = fingerprint.get_str();
const std::string& fingerprintStr{fingerprint.get_str()};
// Skip duplicate signer
bool duplicate = false;
for (const ExternalSigner& signer : signers) {