Cleaned up test code.

This commit is contained in:
Gunnar Beutner 2012-06-13 13:56:26 +02:00
parent 31407fd07f
commit ee0ee227da
1 changed files with 1 additions and 3 deletions

View File

@ -96,9 +96,7 @@ int IcingaApplication::Main(const vector<string>& args)
ConfigObject::TMap::Range range = ConfigObject::GetObjects("service");
for (ConfigObject::TMap::Iterator it = range.first; it != range.second; it++) {
ConfigObject::Ptr obj = it->second;
Service svc = Service(obj);
Service svc(it->second);
CheckTask::Ptr ct = CheckTask::CreateTask(svc);
CheckResult cr = ct->Execute();
}