mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Embrace nullptr over NULL and 0
This commit is contained in:
parent
ae18aa0639
commit
a5d06fde4b
16 changed files with 36 additions and 33 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue