From 8b4b9236e10a84c045de75a34bc96af8872c64e0 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Tue, 25 Nov 2014 09:06:59 -0600 Subject: [PATCH] Renaming variable. --- rai/core/core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rai/core/core.cpp b/rai/core/core.cpp index 0c078e67..daef1d1d 100644 --- a/rai/core/core.cpp +++ b/rai/core/core.cpp @@ -2708,11 +2708,11 @@ void rai::block_path::receive_block (rai::receive_block const & block_a) { rai::block_path path_l (path, blocks); path_l.generate (block_a.hashables.source); - auto existing2 (blocks.find (block_a.hashables.previous)); - if (existing2 != blocks.end ()) + auto existing (blocks.find (block_a.hashables.previous)); + if (existing != blocks.end ()) { - path.push_back (std::move (existing2->second)); - blocks.erase (existing2); + path.push_back (std::move (existing->second)); + blocks.erase (existing); } }