diff options
Diffstat (limited to 'common/facadefactory.cpp')
-rw-r--r-- | common/facadefactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/facadefactory.cpp b/common/facadefactory.cpp index b5a0ff2..107d575 100644 --- a/common/facadefactory.cpp +++ b/common/facadefactory.cpp | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "resourcefacade.h" | 22 | #include "resourcefacade.h" |
23 | #include "resource.h" | 23 | #include "resource.h" |
24 | #include "adaptorfactoryregistry.h" | ||
24 | 25 | ||
25 | using namespace Sink; | 26 | using namespace Sink; |
26 | 27 | ||
@@ -72,7 +73,7 @@ std::shared_ptr<void> FacadeFactory::getFacade(const QByteArray &resource, const | |||
72 | } | 73 | } |
73 | 74 | ||
74 | if (auto factoryFunction = mFacadeRegistry.value(k)) { | 75 | if (auto factoryFunction = mFacadeRegistry.value(k)) { |
75 | return factoryFunction(instanceIdentifier); | 76 | return factoryFunction(ResourceContext{instanceIdentifier, resource, AdaptorFactoryRegistry::instance().getFactories(resource)}); |
76 | } | 77 | } |
77 | qWarning() << "Failed to find facade for resource: " << resource << " and type: " << typeName; | 78 | qWarning() << "Failed to find facade for resource: " << resource << " and type: " << typeName; |
78 | return std::shared_ptr<void>(); | 79 | return std::shared_ptr<void>(); |