From 8d8f72a17a34d10281f27d65aa5610838526a071 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 15 Jan 2023 12:00:26 +0300 Subject: [PATCH] Fix some lower-case spelling. --- td/telegram/InputInvoice.cpp | 4 ++-- td/telegram/LanguagePackManager.cpp | 2 +- td/telegram/WebPagesManager.cpp | 14 +++++++------- td/telegram/files/FileLocation.h | 2 +- td/telegram/net/Session.cpp | 2 +- tdutils/CMakeLists.txt | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/td/telegram/InputInvoice.cpp b/td/telegram/InputInvoice.cpp index ff7789138..7f48f7838 100644 --- a/td/telegram/InputInvoice.cpp +++ b/td/telegram/InputInvoice.cpp @@ -136,13 +136,13 @@ Result InputInvoice::process_input_message_invoice( auto r_http_url = parse_url(input_invoice->photo_url_); if (r_http_url.is_error()) { if (!input_invoice->photo_url_.empty()) { - LOG(INFO) << "Can't register url " << input_invoice->photo_url_; + LOG(INFO) << "Can't register URL " << input_invoice->photo_url_; } } else { auto url = r_http_url.ok().get_url(); auto r_invoice_file_id = td->file_manager_->from_persistent_id(url, FileType::Temp); if (r_invoice_file_id.is_error()) { - LOG(INFO) << "Can't register url " << url; + LOG(INFO) << "Can't register URL " << url; } else { auto invoice_file_id = r_invoice_file_id.move_as_ok(); diff --git a/td/telegram/LanguagePackManager.cpp b/td/telegram/LanguagePackManager.cpp index 154b346fa..345003b5a 100644 --- a/td/telegram/LanguagePackManager.cpp +++ b/td/telegram/LanguagePackManager.cpp @@ -1688,7 +1688,7 @@ Result LanguagePackManager::get_language_info return Status::Error(400, "Language pack plural code must be encoded in UTF-8"); } if (!clean_input_string(language_pack_info->translation_url_)) { - return Status::Error(400, "Language pack translation url must be encoded in UTF-8"); + return Status::Error(400, "Language pack translation URL must be encoded in UTF-8"); } if (language_pack_info->total_string_count_ < 0) { language_pack_info->total_string_count_ = 0; diff --git a/td/telegram/WebPagesManager.cpp b/td/telegram/WebPagesManager.cpp index 95e91dfe4..7cddd3a2c 100644 --- a/td/telegram/WebPagesManager.cpp +++ b/td/telegram/WebPagesManager.cpp @@ -207,7 +207,7 @@ class WebPagesManager::WebPageInstantView { friend StringBuilder &operator<<(StringBuilder &string_builder, const WebPagesManager::WebPageInstantView &instant_view) { - return string_builder << "InstantView(url = " << instant_view.url << ", size = " << instant_view.page_blocks.size() + return string_builder << "InstantView(URL = " << instant_view.url << ", size = " << instant_view.page_blocks.size() << ", view_count = " << instant_view.view_count << ", hash = " << instant_view.hash << ", is_empty = " << instant_view.is_empty << ", is_v2 = " << instant_view.is_v2 << ", is_rtl = " << instant_view.is_rtl << ", is_full = " << instant_view.is_full @@ -781,7 +781,7 @@ void WebPagesManager::on_get_web_page_preview_success(int64 request_id, const st void WebPagesManager::on_get_web_page_preview_fail(int64 request_id, const string &url, Status error, Promise &&promise) { - LOG(INFO) << "Clean up getting of web page preview with url \"" << url << '"'; + LOG(INFO) << "Clean up getting of web page preview with URL \"" << url << '"'; CHECK(error.is_error()); promise.set_error(std::move(error)); } @@ -830,7 +830,7 @@ tl_object_ptr WebPagesManager::get_web_page_preview_result(int6 } void WebPagesManager::get_web_page_instant_view(const string &url, bool force_full, Promise &&promise) { - LOG(INFO) << "Trying to get web page instant view for the url \"" << url << '"'; + LOG(INFO) << "Trying to get web page instant view for the URL \"" << url << '"'; if (url.empty()) { return promise.set_value(WebPageId()); } @@ -1046,16 +1046,16 @@ WebPageId WebPagesManager::get_web_page_by_url(const string &url) const { auto it = url_to_web_page_id_.find(url); if (it != url_to_web_page_id_.end()) { - LOG(INFO) << "Return " << it->second << " for the url \"" << url << '"'; + LOG(INFO) << "Return " << it->second << " for the URL \"" << url << '"'; return it->second; } - LOG(INFO) << "Can't find web page identifier for the url \"" << url << '"'; + LOG(INFO) << "Can't find web page identifier for the URL \"" << url << '"'; return WebPageId(); } void WebPagesManager::get_web_page_by_url(const string &url, Promise &&promise) { - LOG(INFO) << "Trying to get web page identifier for the url \"" << url << '"'; + LOG(INFO) << "Trying to get web page identifier for the URL \"" << url << '"'; if (url.empty()) { return promise.set_value(WebPageId()); } @@ -1089,7 +1089,7 @@ void WebPagesManager::load_web_page_by_url(string url, Promise &&prom void WebPagesManager::on_load_web_page_id_by_url_from_database(string url, string value, Promise &&promise) { TRY_STATUS_PROMISE(promise, G()->close_status()); - LOG(INFO) << "Successfully loaded url \"" << url << "\" of size " << value.size() << " from database"; + LOG(INFO) << "Successfully loaded URL \"" << url << "\" of size " << value.size() << " from database"; // G()->td_db()->get_sqlite_pmc()->erase(get_web_page_url_database_key(web_page_id), Auto()); // value.clear(); diff --git a/td/telegram/files/FileLocation.h b/td/telegram/files/FileLocation.h index 2cf48a115..5d3d07a11 100644 --- a/td/telegram/files/FileLocation.h +++ b/td/telegram/files/FileLocation.h @@ -142,7 +142,7 @@ struct WebRemoteFileLocation { }; inline StringBuilder &operator<<(StringBuilder &string_builder, const WebRemoteFileLocation &location) { - return string_builder << "[url = " << location.url_ << ", access_hash = " << location.access_hash_ << "]"; + return string_builder << "[URL = " << location.url_ << ", access_hash = " << location.access_hash_ << "]"; } struct CommonRemoteFileLocation { diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index b167f457e..04371800e 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -1265,7 +1265,7 @@ void Session::connection_open_finish(ConnectionInfo *info, VLOG(dc) << "Change mode " << mode_ << "--->" << expected_mode; mode_ = expected_mode; if (info->connection_id_ == 1 && mode_ != Mode::Http) { - LOG(WARNING) << "Got tcp connection for long poll connection"; + LOG(WARNING) << "Receive TCP connection for long poll connection"; connection_add(std::move(raw_connection)); info->state_ = ConnectionInfo::State::Empty; yield(); diff --git a/tdutils/CMakeLists.txt b/tdutils/CMakeLists.txt index 7c568fdeb..08d8029cc 100644 --- a/tdutils/CMakeLists.txt +++ b/tdutils/CMakeLists.txt @@ -2,7 +2,7 @@ if ((CMAKE_MAJOR_VERSION LESS 3) OR (CMAKE_VERSION VERSION_LESS "3.0.2")) message(FATAL_ERROR "CMake >= 3.0.2 is required") endif() -option(TDUTILS_MIME_TYPE "Generate mime types conversion; requires gperf" ON) +option(TDUTILS_MIME_TYPE "Generate MIME types conversion; requires gperf" ON) if (NOT DEFINED CMAKE_INSTALL_LIBDIR) set(CMAKE_INSTALL_LIBDIR "lib")