From 40600f5089a57a474c2c5207bbc51726c22822eb Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 30 Sep 2016 15:00:16 +1300 Subject: [PATCH] Simplify ClearNoteWitnessCache() --- src/wallet/wallet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 85e6944c..be101df6 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -597,8 +597,7 @@ void CWallet::ClearNoteWitnessCache() LOCK(cs_wallet); for (std::pair& wtxItem : mapWallet) { for (mapNoteData_t::value_type& item : wtxItem.second.mapNoteData) { - CNoteData* nd = &(item.second); - nd->witnesses.clear(); + item.second.witnesses.clear(); } } }