Index: src/Platform.cpp |
diff --git a/src/Platform.cpp b/src/Platform.cpp |
index ede0dca6b0af370648a1a9b3fb5e80c09431e745..4d300cd8fa38704d794a0726e361612121782daf 100644 |
--- a/src/Platform.cpp |
+++ b/src/Platform.cpp |
@@ -95,14 +95,14 @@ void Platform::CreateFilterEngineAsync(const FilterEngine::CreationParameters& p |
{ |
filterEnginePromise->set_value(filterEngine); |
if (onCreated) |
- onCreated(filterEngine); |
+ onCreated(*filterEngine); |
}, parameters); |
} |
-FilterEnginePtr Platform::GetFilterEngine() |
+FilterEngine& Platform::GetFilterEngine() |
{ |
CreateFilterEngineAsync(); |
- return std::shared_future<FilterEnginePtr>(filterEngine).get(); |
+ return *std::shared_future<FilterEnginePtr>(filterEngine).get(); |
} |
ITimer& Platform::GetTimer() |