From 02219fb46fff9312ec2bf3896fdee6dd537aaa0d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 5 Jan 2017 18:30:06 +0100 Subject: Avoid unnecessary warnings --- common/resourcefacade.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'common/resourcefacade.cpp') diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index 091970c..13cad64 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp @@ -64,8 +64,11 @@ typename ApplicationDomain::SinkResource::Ptr readFromConfigsetProperty(ApplicationDomain::SinkResource::ResourceType::name, type); - if (auto res = ResourceFactory::load(type)) { - object->setCapabilities(res->capabilities()); + //Apply the capabilities where we have capabilities + if (!ApplicationDomain::isGlobalType(type)) { + if (auto res = ResourceFactory::load(type)) { + object->setCapabilities(res->capabilities()); + } } applyConfig(configStore, id, *object); return object; -- cgit v1.2.3