projects
/
platform
/
core
/
api
/
notification.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f30015a
)
Update RemoveChildren func
47/229447/2
author
mk5004.lee
<mk5004.lee@samsung.com>
Wed, 1 Apr 2020 05:57:48 +0000
(14:57 +0900)
committer
mk5004.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
patch
|
blob
|
history
diff --git
a/notification-ex/group_item.cc
b/notification-ex/group_item.cc
index
a222587
..
75a55c7
100644
(file)
--- 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<shared_ptr<AbstractItem>> GroupItem::GetChildren() {