ServiceInstance *result = NULL;
result = new ServiceInstance(this);
- if (result != NULL)
- {
+ if (result != NULL) {
mapServices.insert(make_pair(result->getHandle(), result));
- }
- else
- {
- _ERR("alloc failed");
+ } else {
+ _ERR("alloc failed"); //LCOV_EXCL_LINE
}
return result;
ServiceInstance *ClientInstance::getService(unsigned int handle)
{
+ /* LCOV_EXCL_START */
ServiceInstance *result = NULL;
map<unsigned int, ServiceInstance *>::iterator item;
}
return result;
+ /* LCOV_EXCL_STOP */
}
void ClientInstance::removeService(unsigned int handle)
{
+ /* LCOV_EXCL_START */
map<unsigned int, ServiceInstance *>::iterator item;
if ((item = mapServices.find(handle)) != mapServices.end())
delete item->second;
mapServices.erase(item);
}
+ /* LCOV_EXCL_STOP */
}
void ClientInstance::removeServices()