diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:14:26 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:14:26 +0100 |
| commit | d802d392811be44d34ae9cd23f616db93e54c50f (patch) | |
| tree | f9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/DiscIO/NANDContentLoader.cpp | |
| parent | f28116b7da6aac6069084596dc4dbf866bdebfd8 (diff) | |
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/NANDContentLoader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 96db3b2436..5ea4daa637 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -157,7 +157,7 @@ CNANDContentLoader::CNANDContentLoader(const std::string& _rName) , m_IosVersion(0x09) , m_BootIndex(-1) , m_TIKSize(0) - , m_TIK(NULL) + , m_TIK(nullptr) { m_Valid = Initialize(_rName); } @@ -172,7 +172,7 @@ CNANDContentLoader::~CNANDContentLoader() if (m_TIK) { delete []m_TIK; - m_TIK = NULL; + m_TIK = nullptr; } } @@ -185,7 +185,7 @@ const SNANDContent* CNANDContentLoader::GetContentByIndex(int _Index) const return &Content; } } - return NULL; + return nullptr; } bool CNANDContentLoader::Initialize(const std::string& _rName) @@ -194,8 +194,8 @@ bool CNANDContentLoader::Initialize(const std::string& _rName) return false; m_Path = _rName; WiiWAD Wad(_rName); - u8* pDataApp = NULL; - u8* pTMD = NULL; + u8* pDataApp = nullptr; + u8* pTMD = nullptr; u8 DecryptTitleKey[16]; u8 IV[16]; if (Wad.IsValid()) @@ -272,7 +272,7 @@ bool CNANDContentLoader::Initialize(const std::string& _rName) continue; } - rContent.m_pData = NULL; + rContent.m_pData = nullptr; if (rContent.m_Type & 0x8000) // shared app { |
