diff options
author | Juan Linietsky <juan@godotengine.org> | 2020-02-17 18:06:54 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-18 10:10:36 +0100 |
commit | 3205a92ad872f918c8322cdcd1434c231a1fd251 (patch) | |
tree | db44242ca27432eb8ea849679752d0835d2ae41a /modules/gdscript/language_server | |
parent | fb8c93c10b4b73d5f18f1ed287497728800e22b5 (diff) |
PoolVector is gone, replaced by Vector
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_language_protocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/language_server/gdscript_language_protocol.cpp b/modules/gdscript/language_server/gdscript_language_protocol.cpp index 7133c6b4be..b2da5dfdbc 100644 --- a/modules/gdscript/language_server/gdscript_language_protocol.cpp +++ b/modules/gdscript/language_server/gdscript_language_protocol.cpp @@ -39,10 +39,10 @@ GDScriptLanguageProtocol *GDScriptLanguageProtocol::singleton = NULL; void GDScriptLanguageProtocol::on_data_received(int p_id) { lastest_client_id = p_id; Ref<WebSocketPeer> peer = server->get_peer(p_id); - PoolByteArray data; + PackedByteArray data; if (OK == peer->get_packet_buffer(data)) { String message; - message.parse_utf8((const char *)data.read().ptr(), data.size()); + message.parse_utf8((const char *)data.ptr(), data.size()); if (message.begins_with("Content-Length:")) return; String output = process_message(message); if (!output.empty()) { |