diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-14 14:50:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 14:50:17 +0200 |
commit | 15b25b739dab84dcde99deaf29e75547ec941f45 (patch) | |
tree | 90aa672d8623d299282bf6f2bbb7216f6738cdf3 /core/io | |
parent | 5f5f53e8eba5c9b708714de58d3cca6ceb010279 (diff) | |
parent | a1aaed5a84e5206032495ee3d7447847aa8c9515 (diff) |
Merge pull request #38736 from akien-mga/modernize-all-the-things
C++: Apply some `modernize-*` checks from clang-tidy (nullptr, bool literals, void args)
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/file_access_buffered.h | 2 | ||||
-rw-r--r-- | core/io/http_client.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/io/file_access_buffered.h b/core/io/file_access_buffered.h index 2832367a8b..f473886330 100644 --- a/core/io/file_access_buffered.h +++ b/core/io/file_access_buffered.h @@ -66,7 +66,7 @@ protected: int offset; } cache; - virtual int read_data_block(int p_offset, int p_size, uint8_t *p_dest = 0) const = 0; + virtual int read_data_block(int p_offset, int p_size, uint8_t *p_dest = nullptr) const = 0; void set_cache_size(int p_size); int get_cache_size(); diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index 672569c5db..940bac0009 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -283,7 +283,7 @@ void HTTPClient::close() { body_size = -1; body_left = 0; chunk_left = 0; - chunk_trailer_part = 0; + chunk_trailer_part = false; read_until_eof = false; response_num = 0; handshaking = false; |