From: mk5004.lee Date: Wed, 1 Apr 2020 05:57:48 +0000 (+0900) Subject: Update RemoveChildren func X-Git-Tag: submit/tizen_5.5/20200401.075435^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f64bb0241852ff124bafabaf7e59ffdfc1dda120;p=platform%2Fcore%2Fapi%2Fnotification.git Update RemoveChildren func - use clear() instead of remove() Change-Id: I2981d3d69cef84c6aa4a62acec7b997f33320451 Signed-off-by: mk5004.lee --- diff --git a/notification-ex/group_item.cc b/notification-ex/group_item.cc index a222587c..75a55c76 100644 --- a/notification-ex/group_item.cc +++ b/notification-ex/group_item.cc @@ -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> GroupItem::GetChildren() {