summaryrefslogtreecommitdiffstats
path: root/platform/web/http_client_web.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/web/http_client_web.cpp')
-rw-r--r--platform/web/http_client_web.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/web/http_client_web.cpp b/platform/web/http_client_web.cpp
index ea9226a5a4..80257dc295 100644
--- a/platform/web/http_client_web.cpp
+++ b/platform/web/http_client_web.cpp
@@ -266,11 +266,11 @@ Error HTTPClientWeb::poll() {
return OK;
}
-HTTPClient *HTTPClientWeb::_create_func() {
- return memnew(HTTPClientWeb);
+HTTPClient *HTTPClientWeb::_create_func(bool p_notify_postinitialize) {
+ return static_cast<HTTPClient *>(ClassDB::creator<HTTPClientWeb>(p_notify_postinitialize));
}
-HTTPClient *(*HTTPClient::_create)() = HTTPClientWeb::_create_func;
+HTTPClient *(*HTTPClient::_create)(bool p_notify_postinitialize) = HTTPClientWeb::_create_func;
HTTPClientWeb::HTTPClientWeb() {
}