diff options
author | Daylily-Zeleen <daylily-zeleen@foxmail.com> | 2024-04-22 22:34:44 +0800 |
---|---|---|
committer | Daylily-Zeleen <daylily-zeleen@foxmail.com> | 2024-08-20 20:19:02 +0800 |
commit | 3d575801cef4239b120e8ca974ad478a71517fdf (patch) | |
tree | 830d0a9bf5bdf2dbaedcae4307996a4181e5c60f /core/io/http_client_tcp.cpp | |
parent | 8dfb8efaa9c2461306da408ea7cb087ee6bcb0a9 (diff) | |
download | redot-engine-3d575801cef4239b120e8ca974ad478a71517fdf.tar.gz |
Allow ClassDB to create a Object without postinitialization for GDExtension.
Diffstat (limited to 'core/io/http_client_tcp.cpp')
-rw-r--r-- | core/io/http_client_tcp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/io/http_client_tcp.cpp b/core/io/http_client_tcp.cpp index 2f45238951..70fcad543a 100644 --- a/core/io/http_client_tcp.cpp +++ b/core/io/http_client_tcp.cpp @@ -35,8 +35,8 @@ #include "core/io/stream_peer_tls.h" #include "core/version.h" -HTTPClient *HTTPClientTCP::_create_func() { - return memnew(HTTPClientTCP); +HTTPClient *HTTPClientTCP::_create_func(bool p_notify_postinitialize) { + return static_cast<HTTPClient *>(ClassDB::creator<HTTPClientTCP>(p_notify_postinitialize)); } Error HTTPClientTCP::connect_to_host(const String &p_host, int p_port, Ref<TLSOptions> p_options) { @@ -792,6 +792,6 @@ HTTPClientTCP::HTTPClientTCP() { request_buffer.instantiate(); } -HTTPClient *(*HTTPClient::_create)() = HTTPClientTCP::_create_func; +HTTPClient *(*HTTPClient::_create)(bool p_notify_postinitialize) = HTTPClientTCP::_create_func; #endif // WEB_ENABLED |