diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-22 14:43:23 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-22 14:43:23 +0100 |
commit | 28c40c63f557fa05c402c9c88ffbe9bfdca20648 (patch) | |
tree | 7256083b2d1d06a275ea237b90d5453e5d37680c /common/facadefactory.h | |
parent | c799105ca6b4107fa19de9845247f1f3322ea6ef (diff) | |
download | sink-28c40c63f557fa05c402c9c88ffbe9bfdca20648.tar.gz sink-28c40c63f557fa05c402c9c88ffbe9bfdca20648.zip |
Never remove the static facades.
This fixes the clientapitest.
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 8d41705..afd08b6 100644 --- a/common/facadefactory.h +++ b/common/facadefactory.h | |||
@@ -92,6 +92,12 @@ public: | |||
92 | return std::static_pointer_cast<StoreFacade<DomainType>>(ptr); | 92 | return std::static_pointer_cast<StoreFacade<DomainType>>(ptr); |
93 | } | 93 | } |
94 | 94 | ||
95 | template <class DomainType> | ||
96 | std::shared_ptr<StoreFacade<DomainType>> getFacade() | ||
97 | { | ||
98 | return getFacade<DomainType>(QByteArray(), QByteArray()); | ||
99 | } | ||
100 | |||
95 | private: | 101 | private: |
96 | FacadeFactory(); | 102 | FacadeFactory(); |
97 | std::shared_ptr<void> getFacade(const QByteArray &resource, const QByteArray &instanceIdentifier, const QByteArray &typeName); | 103 | std::shared_ptr<void> getFacade(const QByteArray &resource, const QByteArray &instanceIdentifier, const QByteArray &typeName); |