Skip to content

Commit 001493a

Browse files
committed
fix: more fixes for performance-move-const-arg clang-tidy
1 parent 245d1b1 commit 001493a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/evo/deterministicmns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ std::vector<std::pair<uint256, CDeterministicMNListDiff>> CDeterministicMNManage
18361836
temp_diffs.emplace_back(pIndex->GetBlockHash(), recalc_diff);
18371837

18381838
// Move forward
1839-
current_list = std::move(next_list);
1839+
current_list = next_list; // TODO: make CDeterministicMNList moveable
18401840
}
18411841

18421842
// Verify that applying all diffs results in the target snapshot

src/instantsend/net_instantsend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ void NetInstantSend::ProcessPendingISLocks(std::vector<std::pair<uint256, instan
237237
still_pending.reserve(bad_is_locks.size());
238238
for (auto& p : locks_to_process) {
239239
if (bad_is_locks.contains(p.first)) {
240-
still_pending.push_back(std::move(p));
240+
still_pending.emplace_back(std::move(p));
241241
}
242242
}
243243
// Now check against the previous active set and perform banning if this fails
244-
ProcessPendingInstantSendLocks(llmq_params, dkgInterval, /*ban=*/true, std::move(still_pending));
244+
ProcessPendingInstantSendLocks(llmq_params, dkgInterval, /*ban=*/true, still_pending);
245245
}
246246
}
247247

src/masternode/meta.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ bool CMasternodeMetaMan::SetPlatformBan(const uint256& inv_hash, PlatformBanMess
202202

203203
bool ret = GetMetaInfo(protx_hash).SetPlatformBan(true, ban_msg.m_requested_height);
204204
if (ret) {
205-
m_seen_platform_bans.insert(inv_hash, std::move(ban_msg));
205+
m_seen_platform_bans.emplace(inv_hash, std::move(ban_msg));
206206
}
207207
return ret;
208208
}

0 commit comments

Comments
 (0)