diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-04-18 22:14:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 22:14:11 +0200 |
| commit | 2e7f0d002e1a57b9a2477e6f907e85538efb07b2 (patch) | |
| tree | 5f60010291eff9ed9c35c8350ce5bb4b55422a56 /Source/Core/UICommon/ResourcePack/ResourcePack.cpp | |
| parent | 8a355dbbd7a37629c5844461bf1796a86f1510f6 (diff) | |
| parent | a5d06fde4b597d93750ba29bc2db83401fe431f7 (diff) | |
Merge pull request #11760 from Minty-Meeo/embracing-nullptr
Embrace nullptr over NULL and 0
Diffstat (limited to 'Source/Core/UICommon/ResourcePack/ResourcePack.cpp')
| -rw-r--r-- | Source/Core/UICommon/ResourcePack/ResourcePack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp index 355dc8acf2..7f670e7748 100644 --- a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp +++ b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp @@ -36,7 +36,7 @@ ResourcePack::ResourcePack(const std::string& path) : m_path(path) return; } - if (unzLocateFile(file, "manifest.json", 0) == UNZ_END_OF_LIST_OF_FILE) + if (unzLocateFile(file, "manifest.json", nullptr) == UNZ_END_OF_LIST_OF_FILE) { m_valid = false; m_error = "Resource pack is missing a manifest."; @@ -63,7 +63,7 @@ ResourcePack::ResourcePack(const std::string& path) : m_path(path) return; } - if (unzLocateFile(file, "logo.png", 0) != UNZ_END_OF_LIST_OF_FILE) + if (unzLocateFile(file, "logo.png", nullptr) != UNZ_END_OF_LIST_OF_FILE) { unz_file_info64 logo_info{}; unzGetCurrentFileInfo64(file, &logo_info, nullptr, 0, nullptr, 0, nullptr, 0); |
