mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
parent
319b233c6a
commit
f5b4e951f0
@ -88,9 +88,11 @@ void Service::RemoveAllComments(void)
|
|||||||
std::vector<String> ids;
|
std::vector<String> ids;
|
||||||
Dictionary::Ptr comments = GetComments();
|
Dictionary::Ptr comments = GetComments();
|
||||||
|
|
||||||
ObjectLock olock(comments);
|
{
|
||||||
BOOST_FOREACH(const Dictionary::Pair& kv, comments) {
|
ObjectLock olock(comments);
|
||||||
ids.push_back(kv.first);
|
BOOST_FOREACH(const Dictionary::Pair& kv, comments) {
|
||||||
|
ids.push_back(kv.first);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FOREACH(const String& id, ids) {
|
BOOST_FOREACH(const String& id, ids) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user