pass large parameters by const ref, not value

Coverity 136394 136397 136409 136526 136529 136533 175302
This commit is contained in:
moneromooo-monero 2018-02-02 18:45:12 +00:00
parent 61defd89e3
commit 2e3e90acbe
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
7 changed files with 14 additions and 14 deletions

View file

@ -38,7 +38,7 @@ namespace
{
bool lift_up_difficulty(std::vector<test_event_entry>& events, std::vector<uint64_t>& timestamps,
std::vector<difficulty_type>& cummulative_difficulties, test_generator& generator,
size_t new_block_count, const block blk_last, const account_base& miner_account)
size_t new_block_count, const block &blk_last, const account_base& miner_account)
{
difficulty_type commulative_diffic = cummulative_difficulties.empty() ? 0 : cummulative_difficulties.back();
block blk_prev = blk_last;