aboutsummaryrefslogtreecommitdiff
path: root/src/debug_utilities
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-13 11:21:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-18 15:15:54 +0000
commitb51dc5668714a88d79ddb410d0dcab1559a4bc98 (patch)
tree343b7443c8193c90eb83bcb96a9d16ae4d2f6e52 /src/debug_utilities
parentnet_parse_helpers: fix regex error checking (diff)
downloadmonero-b51dc5668714a88d79ddb410d0dcab1559a4bc98.tar.xz
use const refs in for loops for non tiny types
Diffstat (limited to 'src/debug_utilities')
-rw-r--r--src/debug_utilities/object_sizes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug_utilities/object_sizes.cpp b/src/debug_utilities/object_sizes.cpp
index 82d8a4add..967742229 100644
--- a/src/debug_utilities/object_sizes.cpp
+++ b/src/debug_utilities/object_sizes.cpp
@@ -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)); }