aboutsummaryrefslogtreecommitdiff
path: root/zenserver/testing/httptest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/testing/httptest.cpp')
-rw-r--r--zenserver/testing/httptest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/testing/httptest.cpp b/zenserver/testing/httptest.cpp
index 10b69c469..349a95ab3 100644
--- a/zenserver/testing/httptest.cpp
+++ b/zenserver/testing/httptest.cpp
@@ -128,14 +128,14 @@ HttpTestingService::HandlePackageRequest(HttpServerRequest& HttpServiceRequest)
m_HandlerMap.erase(It);
- return Handler.Get();
+ return Handler;
}
- auto InsertResult = m_HandlerMap.insert({RequestId, nullptr});
+ auto InsertResult = m_HandlerMap.insert({RequestId, Ref<PackageHandler>()});
_.ReleaseNow();
- return (InsertResult.first->second = new PackageHandler(*this, RequestId)).Get();
+ return (InsertResult.first->second = Ref<PackageHandler>(new PackageHandler(*this, RequestId)));
}
void