File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ SHARING_MAPT2(, size_type)::erase(
450
450
return 0 ;
451
451
452
452
node_type *del=nullptr ;
453
- unsigned del_bit;
453
+ unsigned del_bit= 0 ;
454
454
455
455
size_t key=hash ()(k);
456
456
node_type *p=↦
@@ -472,18 +472,15 @@ SHARING_MAPT2(, size_type)::erase(
472
472
473
473
_sm_assert (p->is_container ());
474
474
475
- {
476
- const containert &c=as_const (p)->get_container ();
475
+ const containert &c=as_const (p)->get_container ();
477
476
478
- if (c.size ()==1 )
479
- {
480
- del->remove_child (del_bit);
481
- num--;
482
- return 1 ;
483
- }
477
+ if (c.size ()==1 )
478
+ {
479
+ del->remove_child (del_bit);
480
+ num--;
481
+ return 1 ;
484
482
}
485
483
486
- containert &c=p->get_container ();
487
484
_sm_assert (c.size ()>1 );
488
485
p->remove_leaf (k);
489
486
num--;
You can’t perform that action at this time.
0 commit comments