diff options
author | Rechi <Rechi@users.noreply.github.com> | 2023-07-19 19:42:14 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2023-07-19 19:42:14 +0100 |
commit | 09f61c4353413438c4149bd4b6c5a845727aefba (patch) | |
tree | b9eb7962983f07665458ed2a883864981d19d20a /tools/depends/native | |
parent | 4f1aa9a9ad0434a6f7b453ed050425ca886ad626 (diff) |
[clang-tidy] modernize-use-default-member-init
Diffstat (limited to 'tools/depends/native')
-rw-r--r-- | tools/depends/native/TexturePacker/src/XBTFWriter.cpp | 2 | ||||
-rw-r--r-- | tools/depends/native/TexturePacker/src/XBTFWriter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/depends/native/TexturePacker/src/XBTFWriter.cpp b/tools/depends/native/TexturePacker/src/XBTFWriter.cpp index bb7f40ea20..53add01dc9 100644 --- a/tools/depends/native/TexturePacker/src/XBTFWriter.cpp +++ b/tools/depends/native/TexturePacker/src/XBTFWriter.cpp @@ -37,7 +37,7 @@ #define WRITE_U32(i, file) { uint32_t _n = Endian_SwapLE32(i); fwrite(&_n, 4, 1, file); } #define WRITE_U64(i, file) { uint64_t _n = i; _n = Endian_SwapLE64(i); fwrite(&_n, 8, 1, file); } -CXBTFWriter::CXBTFWriter(const std::string& outputFile) : m_outputFile(outputFile), m_file(nullptr) +CXBTFWriter::CXBTFWriter(const std::string& outputFile) : m_outputFile(outputFile) { } CXBTFWriter::~CXBTFWriter() diff --git a/tools/depends/native/TexturePacker/src/XBTFWriter.h b/tools/depends/native/TexturePacker/src/XBTFWriter.h index ab639fcdf3..a17954b89c 100644 --- a/tools/depends/native/TexturePacker/src/XBTFWriter.h +++ b/tools/depends/native/TexturePacker/src/XBTFWriter.h @@ -41,7 +41,7 @@ private: void Cleanup(); std::string m_outputFile; - FILE* m_file; + FILE* m_file = nullptr; std::vector<uint8_t> m_data; }; |