diff options
author | Aleksandar Kanchev <kanchev@itestra.com> | 2013-06-06 10:51:48 +0200 |
---|---|---|
committer | Aleksandar Kanchev <kanchev@itestra.com> | 2013-06-06 15:05:27 +0200 |
commit | 03caedd43f28289e70f6db4990e2b47a53ecc803 (patch) | |
tree | e9b1142d9aad0c85ea4e3d69c697dfeba216eeba /src/CommonAPI | |
parent | f03d00894cae91ccf7e4f3121f6eaec941682389 (diff) | |
download | genivi-common-api-runtime-03caedd43f28289e70f6db4990e2b47a53ecc803.tar.gz |
factory: fix error return types
Diffstat (limited to 'src/CommonAPI')
-rw-r--r-- | src/CommonAPI/Factory.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommonAPI/Factory.hpp b/src/CommonAPI/Factory.hpp index 7468ded..2f481f5 100644 --- a/src/CommonAPI/Factory.hpp +++ b/src/CommonAPI/Factory.hpp @@ -30,7 +30,7 @@ Factory::buildProxy(const std::string& serviceAddress) { std::string serviceName; std::string participantId; if(!splitValidAddress(serviceAddress, domain, serviceName, participantId)) { - return false; + return std::shared_ptr<_ProxyClass<_AttributeExtensions...> >(); } return buildProxy<_ProxyClass, _AttributeExtensions...>(participantId, serviceName, domain); @@ -54,7 +54,7 @@ Factory::buildProxyWithDefaultAttributeExtension(const std::string& serviceAddre std::string serviceName; std::string participantId; if(!splitValidAddress(serviceAddress, domain, serviceName, participantId)) { - return false; + return std::shared_ptr<typename DefaultAttributeProxyFactoryHelper<_ProxyClass, _AttributeExtension>::class_t>(); } return buildProxyWithDefaultAttributeExtension<_ProxyClass, _AttributeExtension>(participantId, serviceName, domain); |