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 /drivers | |
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 'drivers')
-rw-r--r-- | drivers/png/png_driver_common.cpp | 2 | ||||
-rw-r--r-- | drivers/unix/net_socket_posix.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/png/png_driver_common.cpp b/drivers/png/png_driver_common.cpp index f17abcb54c..3f9c824e93 100644 --- a/drivers/png/png_driver_common.cpp +++ b/drivers/png/png_driver_common.cpp @@ -115,7 +115,7 @@ Error png_to_image(const uint8_t *p_source, size_t p_size, Ref<Image> p_image) { ERR_FAIL_COND_V(!success, ERR_FILE_CORRUPT); //print_line("png width: "+itos(png_img.width)+" height: "+itos(png_img.height)); - p_image->create(png_img.width, png_img.height, 0, dest_format, buffer); + p_image->create(png_img.width, png_img.height, false, dest_format, buffer); return OK; } diff --git a/drivers/unix/net_socket_posix.h b/drivers/unix/net_socket_posix.h index 2e767eef92..4e1fedfcb0 100644 --- a/drivers/unix/net_socket_posix.h +++ b/drivers/unix/net_socket_posix.h @@ -47,7 +47,7 @@ class NetSocketPosix : public NetSocket { private: - SOCKET_TYPE _sock; + SOCKET_TYPE _sock; // NOLINT - the default value is defined in the .cpp IP::Type _ip_type = IP::TYPE_NONE; bool _is_stream = false; |