From be35ad8a48c49827392cc8f811c6c25644608f83 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 9 Aug 2013 14:26:17 +0200 Subject: [PATCH] ido: Clean up newlines. --- lib/ido/servicedbobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ido/servicedbobject.cpp b/lib/ido/servicedbobject.cpp index 9a85f3d3e..93222e8c0 100644 --- a/lib/ido/servicedbobject.cpp +++ b/lib/ido/servicedbobject.cpp @@ -216,6 +216,7 @@ void ServiceDbObject::OnConfigUpdate(void) OnQuery(query_del2); Dictionary::Ptr customvars; + { ObjectLock olock(service); customvars = CompatUtility::GetCustomVariableConfig(service); @@ -287,7 +288,6 @@ void ServiceDbObject::OnStatusUpdate(void) void ServiceDbObject::CommentsChangedHandler(const Service::Ptr& svcfilter, const String& id, CommentChangedType type) { if (type == CommentChangedUpdated || type == CommentChangedDeleted) { - /* we cannot determine which comment id is deleted * ido schema does not store legacy id */ @@ -309,7 +309,6 @@ void ServiceDbObject::CommentsChangedHandler(const Service::Ptr& svcfilter, cons AddComments(service); } } else if (type == CommentChangedAdded) { - Dictionary::Ptr comment = Service::GetCommentByID(id); AddComment(svcfilter, comment); } else { @@ -430,3 +429,4 @@ void ServiceDbObject::DeleteComments(const Service::Ptr& service) } } +