Update RemoveChildren func 47/229447/2
authormk5004.lee <mk5004.lee@samsung.com>
Wed, 1 Apr 2020 05:57:48 +0000 (14:57 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Wed, 1 Apr 2020 06:39:47 +0000 (15:39 +0900)
- use clear() instead of remove()

Change-Id: I2981d3d69cef84c6aa4a62acec7b997f33320451
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification-ex/group_item.cc

index a222587..75a55c7 100644 (file)
@@ -201,9 +201,7 @@ void GroupItem::RemoveChild(string itemId) {
 }
 
 void GroupItem::RemoveChildren() {
-  for (auto& i : impl_->children_list_) {
-    impl_->children_list_.remove(i);
-  }
+  impl_->children_list_.clear();
 }
 
 list<shared_ptr<AbstractItem>> GroupItem::GetChildren() {