Skip to content

Commit

Permalink
Use const value instead of reference
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano committed Jan 28, 2024
1 parent e8df195 commit 1d8e661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nano/node/unchecked_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <nano/lib/timer.hpp>
#include <nano/node/unchecked_map.hpp>

nano::unchecked_map::unchecked_map (unsigned & max_unchecked_blocks, nano::stats & stats, bool const & disable_delete) :
nano::unchecked_map::unchecked_map (unsigned const max_unchecked_blocks, nano::stats & stats, bool const & disable_delete) :
max_unchecked_blocks{ max_unchecked_blocks },
stats{ stats },
disable_delete{ disable_delete },
Expand Down
4 changes: 2 additions & 2 deletions nano/node/unchecked_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class stats;
class unchecked_map
{
public:
unchecked_map (unsigned & max_unchecked_blocks, nano::stats &, bool const & do_delete);
unchecked_map (unsigned const max_unchecked_blocks, nano::stats &, bool const & do_delete);
~unchecked_map ();

void put (nano::hash_or_account const & dependency, nano::unchecked_info const & info);
Expand Down Expand Up @@ -62,7 +62,7 @@ class unchecked_map
nano::condition_variable condition;
nano::mutex mutex;
std::thread thread;
unsigned max_unchecked_blocks;
unsigned const max_unchecked_blocks;

void process_queries (decltype (buffer) const & back_buffer);

Expand Down

0 comments on commit 1d8e661

Please sign in to comment.