diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-12 23:43:26 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-12 23:43:26 +0200 |
commit | d565411a820c0de95d2d60b275ec1f8f2be0a905 (patch) | |
tree | 85a2a3c41e78f29dd3f27c62c8ae9be653c23405 /common/facadefactory.h | |
parent | 75f85f7b30dbd40010a3b1c4d4e8c418cc55cc29 (diff) | |
download | sink-d565411a820c0de95d2d60b275ec1f8f2be0a905.tar.gz sink-d565411a820c0de95d2d60b275ec1f8f2be0a905.zip |
Got rid of unnecessary constructor parameter
Diffstat (limited to 'common/facadefactory.h')
-rw-r--r-- | common/facadefactory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/facadefactory.h b/common/facadefactory.h index 03e0784..7313970 100644 --- a/common/facadefactory.h +++ b/common/facadefactory.h | |||
@@ -55,6 +55,12 @@ public: | |||
55 | registerFacade(resource, [](const QByteArray &instanceIdentifier) { return std::make_shared<Facade>(instanceIdentifier); }, ApplicationDomain::getTypeName<DomainType>()); | 55 | registerFacade(resource, [](const QByteArray &instanceIdentifier) { return std::make_shared<Facade>(instanceIdentifier); }, ApplicationDomain::getTypeName<DomainType>()); |
56 | } | 56 | } |
57 | 57 | ||
58 | template <class DomainType, class Facade> | ||
59 | void registerFacade() | ||
60 | { | ||
61 | registerFacade(QByteArray(), [](const QByteArray &) { return std::make_shared<Facade>(); }, ApplicationDomain::getTypeName<DomainType>()); | ||
62 | } | ||
63 | |||
58 | /* | 64 | /* |
59 | * Allows the registrar to register a specific instance. | 65 | * Allows the registrar to register a specific instance. |
60 | * | 66 | * |