Skip to content

Commit 75838d1

Browse files
vpirogovatkassen
andauthored
Update src/common/memory_tracking.hpp
Co-authored-by: Andy Kassen <andrew.kassen@intel.com>
1 parent 5e8a957 commit 75838d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/common/memory_tracking.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,8 @@ struct registry_t {
429429
common_iterator_t(const void *base_ptr_,
430430
const std::unordered_map<key_t, entry_t> &map,
431431
bool is_begin = true)
432-
: base_ptr(base_ptr_) {
433-
if (is_begin) {
434-
iter = map.cbegin();
435-
} else {
432+
: base_ptr(base_ptr_)
433+
, iter(is_begin ? map.cbegin() : map.cend()) {}
436434
iter = map.cend();
437435
}
438436
}

0 commit comments

Comments
 (0)