Remove assignment and declarations in if statements
After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
This commit is contained in:
@ -438,8 +438,9 @@ private:
|
||||
if (!rp)
|
||||
rp = _data._nil;
|
||||
Element *node = (rp->left == _data._nil) ? rp->right : rp->left;
|
||||
node->parent = rp->parent;
|
||||
|
||||
if (_data._root == (node->parent = rp->parent)) {
|
||||
if (_data._root == node->parent) {
|
||||
_data._root->left = node;
|
||||
} else {
|
||||
if (rp == rp->parent->left) {
|
||||
|
||||
Reference in New Issue
Block a user