diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-27 15:25:51 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-27 15:25:51 +0000 |
commit | 9567bfeab95cc0932073641dd162903850987d43 (patch) | |
tree | ab3f4c137eec2ce5eb794a6b16a9da221f2e8216 /src/addrman.cpp | |
parent | e9262ea32a6e1d364fb7974844fadc36f931f8c6 (diff) |
clang-tidy: Add `performance-no-automatic-move` check
https://clang.llvm.org/extra/clang-tidy/checks/performance/no-automatic-move.html
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r-- | src/addrman.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 9e859c4d67..91eedeebe1 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -1112,7 +1112,7 @@ std::pair<CAddress, NodeSeconds> AddrManImpl::SelectTriedCollision() { LOCK(cs); Check(); - const auto ret = SelectTriedCollision_(); + auto ret = SelectTriedCollision_(); Check(); return ret; } @@ -1121,7 +1121,7 @@ std::pair<CAddress, NodeSeconds> AddrManImpl::Select(bool newOnly) const { LOCK(cs); Check(); - const auto addrRet = Select_(newOnly); + auto addrRet = Select_(newOnly); Check(); return addrRet; } @@ -1130,7 +1130,7 @@ std::vector<CAddress> AddrManImpl::GetAddr(size_t max_addresses, size_t max_pct, { LOCK(cs); Check(); - const auto addresses = GetAddr_(max_addresses, max_pct, network); + auto addresses = GetAddr_(max_addresses, max_pct, network); Check(); return addresses; } |