From 90dea0376ac22e690ca4939bb33158a3dfdc72fd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Dec 2008 09:34:48 +0000 Subject: [PATCH] don't change the value of the hash element if insert() didn't add it (closes #10261) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 8618a211e7..d9260758f8 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -671,8 +671,6 @@ public: \ Node *node = GetOrCreateNode( \ CLASSNAME##_wxImplementation_Pair( v.first, v.second ), \ created); \ - if ( !created ) \ - node->m_value.second = v.second; \ return Insert_Result(iterator(node, this), created); \ } \ \