Some code changed with Clang-Tidy
This commit is contained in:
parent
5c66771e3e
commit
4e5310cc60
175 changed files with 467 additions and 674 deletions
|
|
@ -314,7 +314,8 @@ bool ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
|
|||
if (!f) {
|
||||
ret = unzGoToNextFile(pkg);
|
||||
fc++;
|
||||
ERR_CONTINUE(!f);
|
||||
ERR_EXPLAIN("Can't open file from path: " + String(to_write));
|
||||
ERR_CONTINUE(true);
|
||||
}
|
||||
|
||||
f->store_buffer(data.ptr(), data.size());
|
||||
|
|
@ -406,9 +407,7 @@ void ExportTemplateManager::_http_download_templates_completed(int p_status, int
|
|||
} break;
|
||||
case HTTPRequest::RESULT_BODY_SIZE_LIMIT_EXCEEDED:
|
||||
case HTTPRequest::RESULT_CONNECTION_ERROR:
|
||||
case HTTPRequest::RESULT_CHUNKED_BODY_SIZE_MISMATCH: {
|
||||
template_list_state->set_text(TTR("Can't connect."));
|
||||
} break;
|
||||
case HTTPRequest::RESULT_CHUNKED_BODY_SIZE_MISMATCH:
|
||||
case HTTPRequest::RESULT_SSL_HANDSHAKE_ERROR:
|
||||
case HTTPRequest::RESULT_CANT_CONNECT: {
|
||||
template_list_state->set_text(TTR("Can't connect."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue