From 8da9fd5d2319f9f901c0359e1190e8a62d6fbfe6 Mon Sep 17 00:00:00 2001 From: Cradmon Date: Tue, 24 Oct 2017 15:59:54 +0100 Subject: [PATCH] Small fix in core/set.h and similar fix in core/map.h --- core/map.h | 1 - core/set.h | 1 - 2 files changed, 2 deletions(-) diff --git a/core/map.h b/core/map.h index f01062ebed5..fb24a5868c3 100644 --- a/core/map.h +++ b/core/map.h @@ -438,7 +438,6 @@ private: Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; Element *node = (rp->left == _data._nil) ? rp->right : rp->left; - node->parent = rp->parent; Element *sibling; if (rp == rp->parent->left) { diff --git a/core/set.h b/core/set.h index 0f48e075206..331979d4e3e 100644 --- a/core/set.h +++ b/core/set.h @@ -424,7 +424,6 @@ private: Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; Element *node = (rp->left == _data._nil) ? rp->right : rp->left; - node->parent = rp->parent; Element *sibling; if (rp == rp->parent->left) {