mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 15:06:07 -04:00
use const refs in for loops for non tiny types
This commit is contained in:
parent
f0568ca6ac
commit
b51dc56687
5 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,7 @@ class size_logger
|
|||
public:
|
||||
~size_logger()
|
||||
{
|
||||
for (const auto i: types)
|
||||
for (const auto &i: types)
|
||||
std::cout << std::to_string(i.first) << "\t" << i.second << std::endl;
|
||||
}
|
||||
void add(const char *type, size_t size) { types.insert(std::make_pair(size, type)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue