From 56ae9e373441aef6cb0e86f97d29f7aae1116599 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 22 Sep 2023 16:21:37 +0200 Subject: [PATCH] Fix typos. --- .../http_server_simple/http_server_simple.cpp | 6 +++--- modules/http_server_simple/http_server_simple.h | 2 +- modules/users/doc_classes/UserManagerDB.xml | 4 ++-- modules/users/managers/user_manager_db.cpp | 16 ++++++++-------- modules/users/managers/user_manager_db.h | 4 ++-- modules/web/database/http_session_manager_db.cpp | 16 ++++++++-------- modules/web/database/http_session_manager_db.h | 4 ++-- modules/web/doc_classes/HTTPSessionManagerDB.xml | 4 ++-- modules/web/doc_classes/WebNode.xml | 6 +++--- modules/web/http/web_node.cpp | 16 ++++++++-------- modules/web/http/web_node.h | 4 ++-- 11 files changed, 41 insertions(+), 41 deletions(-) diff --git a/modules/http_server_simple/http_server_simple.cpp b/modules/http_server_simple/http_server_simple.cpp index db16b7473..c6d90f57a 100644 --- a/modules/http_server_simple/http_server_simple.cpp +++ b/modules/http_server_simple/http_server_simple.cpp @@ -94,7 +94,7 @@ void HTTPServerConnection::update() { } if (_current_request.is_valid()) { - udpate_send_file(_current_request); + update_send_file(_current_request); if (closed()) { //some error happened @@ -340,10 +340,10 @@ void HTTPServerConnection::send_file(Ref request, const String _file_buffer_start = 0; _file_buffer_end = 0; - udpate_send_file(r); + update_send_file(r); } -void HTTPServerConnection::udpate_send_file(Ref request) { +void HTTPServerConnection::update_send_file(Ref request) { int loop_count = 0; while (true) { diff --git a/modules/http_server_simple/http_server_simple.h b/modules/http_server_simple/http_server_simple.h index 1373fd894..2e4b54e4b 100644 --- a/modules/http_server_simple/http_server_simple.h +++ b/modules/http_server_simple/http_server_simple.h @@ -59,7 +59,7 @@ public: void send(Ref request); void send_file(Ref request, const String &p_file_path); - void udpate_send_file(Ref request); + void update_send_file(Ref request); void close(); bool closed(); diff --git a/modules/users/doc_classes/UserManagerDB.xml b/modules/users/doc_classes/UserManagerDB.xml index 298c7ba15..c05e9c068 100644 --- a/modules/users/doc_classes/UserManagerDB.xml +++ b/modules/users/doc_classes/UserManagerDB.xml @@ -31,7 +31,7 @@ - + @@ -76,7 +76,7 @@ - + diff --git a/modules/users/managers/user_manager_db.cpp b/modules/users/managers/user_manager_db.cpp index 71acbe086..16832cba2 100644 --- a/modules/users/managers/user_manager_db.cpp +++ b/modules/users/managers/user_manager_db.cpp @@ -246,8 +246,8 @@ void UserManagerDB::create_table() { void UserManagerDB::drop_table() { call("_drop_table"); } -void UserManagerDB::udpate_table(const int p_current_table_version) { - call("_udpate_table", p_current_table_version); +void UserManagerDB::update_table(const int p_current_table_version) { + call("_update_table", p_current_table_version); } void UserManagerDB::create_default_entries(const int p_seed) { call("_create_default_entries", p_seed); @@ -278,7 +278,7 @@ void UserManagerDB::_drop_table() { tb->drop_table_if_exists(_database_table_name)->run_query(); } -void UserManagerDB::_udpate_table(const int p_current_table_version) { +void UserManagerDB::_update_table(const int p_current_table_version) { } void UserManagerDB::_create_default_entries(const int p_seed) { @@ -315,9 +315,9 @@ void UserManagerDB::_migrate(const bool p_clear, const bool p_should_seed, const Ref conn = get_database_connection(); ERR_FAIL_COND(!conn.is_valid()); int ver = conn->get_table_version(_database_table_name); - udpate_table(ver); + update_table(ver); #else - udpate_table(0); + update_table(0); #endif } @@ -361,17 +361,17 @@ void UserManagerDB::_bind_methods() { BIND_VMETHOD(MethodInfo("_create_table")); BIND_VMETHOD(MethodInfo("_drop_table")); - BIND_VMETHOD(MethodInfo("_udpate_table", PropertyInfo(Variant::INT, "current_table_version"))); + BIND_VMETHOD(MethodInfo("_update_table", PropertyInfo(Variant::INT, "current_table_version"))); BIND_VMETHOD(MethodInfo("_create_default_entries", PropertyInfo(Variant::INT, "pseed"))); ClassDB::bind_method(D_METHOD("create_table"), &UserManagerDB::create_table); ClassDB::bind_method(D_METHOD("drop_table"), &UserManagerDB::drop_table); - ClassDB::bind_method(D_METHOD("udpate_table", "current_table_version"), &UserManagerDB::udpate_table); + ClassDB::bind_method(D_METHOD("update_table", "current_table_version"), &UserManagerDB::update_table); ClassDB::bind_method(D_METHOD("create_default_entries", "pseed"), &UserManagerDB::create_default_entries); ClassDB::bind_method(D_METHOD("_create_table"), &UserManagerDB::_create_table); ClassDB::bind_method(D_METHOD("_drop_table"), &UserManagerDB::_drop_table); - ClassDB::bind_method(D_METHOD("_udpate_table", "current_table_version"), &UserManagerDB::_udpate_table); + ClassDB::bind_method(D_METHOD("_update_table", "current_table_version"), &UserManagerDB::_update_table); ClassDB::bind_method(D_METHOD("_create_default_entries", "pseed"), &UserManagerDB::_create_default_entries); BIND_VMETHOD(MethodInfo("_migrate", PropertyInfo(Variant::BOOL, "clear"), PropertyInfo(Variant::BOOL, "should_seed"), PropertyInfo(Variant::INT, "pseed"))); diff --git a/modules/users/managers/user_manager_db.h b/modules/users/managers/user_manager_db.h index c44faf333..a60d05f36 100644 --- a/modules/users/managers/user_manager_db.h +++ b/modules/users/managers/user_manager_db.h @@ -41,12 +41,12 @@ public: void create_table(); void drop_table(); - void udpate_table(const int p_current_table_version); + void update_table(const int p_current_table_version); void create_default_entries(const int p_seed); virtual void _create_table(); virtual void _drop_table(); - virtual void _udpate_table(const int p_current_table_version); + virtual void _update_table(const int p_current_table_version); virtual void _create_default_entries(const int p_seed); void migrate(const bool p_clear, const bool p_should_seed, const int p_seed); diff --git a/modules/web/database/http_session_manager_db.cpp b/modules/web/database/http_session_manager_db.cpp index 2c681c43c..e7dcb0064 100644 --- a/modules/web/database/http_session_manager_db.cpp +++ b/modules/web/database/http_session_manager_db.cpp @@ -202,8 +202,8 @@ void HTTPSessionManagerDB::create_table() { void HTTPSessionManagerDB::drop_table() { call("_drop_table"); } -void HTTPSessionManagerDB::udpate_table(const int p_current_table_version) { - call("_udpate_table", p_current_table_version); +void HTTPSessionManagerDB::update_table(const int p_current_table_version) { + call("_update_table", p_current_table_version); } void HTTPSessionManagerDB::create_default_entries(const int p_seed) { call("_create_default_entries", p_seed); @@ -238,7 +238,7 @@ void HTTPSessionManagerDB::_drop_table() { tb->drop_table_if_exists(_database_table_name)->run_query(); tb->drop_table_if_exists(_database_data_table_name)->run_query(); } -void HTTPSessionManagerDB::_udpate_table(const int p_current_table_version) { +void HTTPSessionManagerDB::_update_table(const int p_current_table_version) { } void HTTPSessionManagerDB::_create_default_entries(const int p_seed) { } @@ -256,9 +256,9 @@ void HTTPSessionManagerDB::_migrate(const bool p_clear, const bool p_should_seed Ref conn = get_database_connection(); ERR_FAIL_COND(!conn.is_valid()); int ver = conn->get_table_version(_database_table_name); - udpate_table(ver); + update_table(ver); #else - udpate_table(0); + update_table(0); #endif } @@ -307,17 +307,17 @@ void HTTPSessionManagerDB::_bind_methods() { BIND_VMETHOD(MethodInfo("_create_table")); BIND_VMETHOD(MethodInfo("_drop_table")); - BIND_VMETHOD(MethodInfo("_udpate_table", PropertyInfo(Variant::INT, "current_table_version"))); + BIND_VMETHOD(MethodInfo("_update_table", PropertyInfo(Variant::INT, "current_table_version"))); BIND_VMETHOD(MethodInfo("_create_default_entries", PropertyInfo(Variant::INT, "pseed"))); ClassDB::bind_method(D_METHOD("create_table"), &HTTPSessionManagerDB::create_table); ClassDB::bind_method(D_METHOD("drop_table"), &HTTPSessionManagerDB::drop_table); - ClassDB::bind_method(D_METHOD("udpate_table", "current_table_version"), &HTTPSessionManagerDB::udpate_table); + ClassDB::bind_method(D_METHOD("update_table", "current_table_version"), &HTTPSessionManagerDB::update_table); ClassDB::bind_method(D_METHOD("create_default_entries", "pseed"), &HTTPSessionManagerDB::create_default_entries); ClassDB::bind_method(D_METHOD("_create_table"), &HTTPSessionManagerDB::_create_table); ClassDB::bind_method(D_METHOD("_drop_table"), &HTTPSessionManagerDB::_drop_table); - ClassDB::bind_method(D_METHOD("_udpate_table", "current_table_version"), &HTTPSessionManagerDB::_udpate_table); + ClassDB::bind_method(D_METHOD("_update_table", "current_table_version"), &HTTPSessionManagerDB::_update_table); ClassDB::bind_method(D_METHOD("_create_default_entries", "pseed"), &HTTPSessionManagerDB::_create_default_entries); BIND_VMETHOD(MethodInfo("_migrate", PropertyInfo(Variant::BOOL, "clear"), PropertyInfo(Variant::BOOL, "should_seed"), PropertyInfo(Variant::INT, "pseed"))); diff --git a/modules/web/database/http_session_manager_db.h b/modules/web/database/http_session_manager_db.h index b63235dd5..5bf85287e 100644 --- a/modules/web/database/http_session_manager_db.h +++ b/modules/web/database/http_session_manager_db.h @@ -44,12 +44,12 @@ public: void create_table(); void drop_table(); - void udpate_table(const int p_current_table_version); + void update_table(const int p_current_table_version); void create_default_entries(const int p_seed); virtual void _create_table(); virtual void _drop_table(); - virtual void _udpate_table(const int p_current_table_version); + virtual void _update_table(const int p_current_table_version); virtual void _create_default_entries(const int p_seed); void migrate(const bool p_clear, const bool p_should_seed, const int p_seed); diff --git a/modules/web/doc_classes/HTTPSessionManagerDB.xml b/modules/web/doc_classes/HTTPSessionManagerDB.xml index cf0b4f4ea..765f845e6 100644 --- a/modules/web/doc_classes/HTTPSessionManagerDB.xml +++ b/modules/web/doc_classes/HTTPSessionManagerDB.xml @@ -31,7 +31,7 @@ - + @@ -76,7 +76,7 @@ - + diff --git a/modules/web/doc_classes/WebNode.xml b/modules/web/doc_classes/WebNode.xml index 336479be8..8fee25835 100644 --- a/modules/web/doc_classes/WebNode.xml +++ b/modules/web/doc_classes/WebNode.xml @@ -108,11 +108,11 @@ The default implementation of render_preview(). - + - The default implementation of udpate_table(). + The default implementation of update_table(). @@ -293,7 +293,7 @@ Helper method that will try to route requests to child [WebNode]s. Useful when when overriding _handle_request_main(). - + diff --git a/modules/web/http/web_node.cpp b/modules/web/http/web_node.cpp index f87e259b4..49c808056 100644 --- a/modules/web/http/web_node.cpp +++ b/modules/web/http/web_node.cpp @@ -245,8 +245,8 @@ void WebNode::create_table() { void WebNode::drop_table() { call("_drop_table"); } -void WebNode::udpate_table(const int p_current_table_version) { - call("_udpate_table", p_current_table_version); +void WebNode::update_table(const int p_current_table_version) { + call("_update_table", p_current_table_version); } void WebNode::create_default_entries(const int p_seed) { call("_create_default_entries", p_seed); @@ -256,7 +256,7 @@ void WebNode::_create_table() { } void WebNode::_drop_table() { } -void WebNode::_udpate_table(const int p_current_table_version) { +void WebNode::_update_table(const int p_current_table_version) { } void WebNode::_create_default_entries(const int p_seed) { } @@ -274,9 +274,9 @@ void WebNode::_migrate(const bool p_clear, const bool p_should_seed, const int p Ref conn = get_database_connection(); ERR_FAIL_COND(!conn.is_valid()); int ver = conn->get_table_version(_database_table_name); - udpate_table(ver); + update_table(ver); #else - udpate_table(0); + update_table(0); #endif } @@ -533,17 +533,17 @@ void WebNode::_bind_methods() { BIND_VMETHOD(MethodInfo("_create_table")); BIND_VMETHOD(MethodInfo("_drop_table")); - BIND_VMETHOD(MethodInfo("_udpate_table", PropertyInfo(Variant::INT, "current_table_version"))); + BIND_VMETHOD(MethodInfo("_update_table", PropertyInfo(Variant::INT, "current_table_version"))); BIND_VMETHOD(MethodInfo("_create_default_entries", PropertyInfo(Variant::INT, "pseed"))); ClassDB::bind_method(D_METHOD("create_table"), &WebNode::create_table); ClassDB::bind_method(D_METHOD("drop_table"), &WebNode::drop_table); - ClassDB::bind_method(D_METHOD("udpate_table", "current_table_version"), &WebNode::udpate_table); + ClassDB::bind_method(D_METHOD("update_table", "current_table_version"), &WebNode::update_table); ClassDB::bind_method(D_METHOD("create_default_entries", "pseed"), &WebNode::create_default_entries); ClassDB::bind_method(D_METHOD("_create_table"), &WebNode::_create_table); ClassDB::bind_method(D_METHOD("_drop_table"), &WebNode::_drop_table); - ClassDB::bind_method(D_METHOD("_udpate_table", "current_table_version"), &WebNode::_udpate_table); + ClassDB::bind_method(D_METHOD("_update_table", "current_table_version"), &WebNode::_update_table); ClassDB::bind_method(D_METHOD("_create_default_entries", "pseed"), &WebNode::_create_default_entries); BIND_VMETHOD(MethodInfo("_migrate", PropertyInfo(Variant::BOOL, "clear"), PropertyInfo(Variant::BOOL, "should_seed"), PropertyInfo(Variant::INT, "pseed"))); diff --git a/modules/web/http/web_node.h b/modules/web/http/web_node.h index a355d55d5..94db21a9e 100644 --- a/modules/web/http/web_node.h +++ b/modules/web/http/web_node.h @@ -78,12 +78,12 @@ public: void create_table(); void drop_table(); - void udpate_table(const int p_current_table_version); + void update_table(const int p_current_table_version); void create_default_entries(const int p_seed); virtual void _create_table(); virtual void _drop_table(); - virtual void _udpate_table(const int p_current_table_version); + virtual void _update_table(const int p_current_table_version); virtual void _create_default_entries(const int p_seed); void migrate(const bool p_clear, const bool p_should_seed, const int p_seed);