Skip to content

Commit 1f34a23

Browse files
committed
Style.
1 parent 439a9d1 commit 1f34a23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/bitcoin/database/impl/primitives/hashmap.ipp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,16 @@ ELEMENT_CONSTRAINT
373373
inline bool CLASS::put(bool& duplicate, const memory_ptr& ptr,
374374
const Link& link, const Key& key, const Element& element) NOEXCEPT
375375
{
376-
Link previous_head{};
377-
if (!write(previous_head, ptr, link, key, element))
376+
Link previous{};
377+
if (!write(previous, ptr, link, key, element))
378378
return false;
379379

380-
if (previous_head.is_terminal())
380+
if (previous.is_terminal())
381381
ncounter_.fetch_add(one, std::memory_order_relaxed);
382382
else
383383
pcounter_.fetch_add(one, std::memory_order_relaxed);
384384

385-
duplicate = !first(ptr, previous_head, key).is_terminal();
385+
duplicate = !first(ptr, previous, key).is_terminal();
386386
return true;
387387
}
388388

0 commit comments

Comments
 (0)