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/BannerLoaderWii.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/BannerLoaderWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/BannerLoaderWii.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/BannerLoaderWii.cpp b/Source/Core/DiscIO/BannerLoaderWii.cpp index 3fa9113770..5ca4f5f38e 100644 --- a/Source/Core/DiscIO/BannerLoaderWii.cpp +++ b/Source/Core/DiscIO/BannerLoaderWii.cpp @@ -21,7 +21,7 @@ namespace DiscIO { CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume) - : m_pBannerFile(NULL) + : m_pBannerFile(nullptr) , m_IsValid(false) { char Filename[260]; @@ -94,7 +94,7 @@ CBannerLoaderWii::~CBannerLoaderWii() if (m_pBannerFile) { delete [] m_pBannerFile; - m_pBannerFile = NULL; + m_pBannerFile = nullptr; } } @@ -121,7 +121,7 @@ bool CBannerLoaderWii::GetStringFromComments(const CommentIndex index, std::stri auto const banner = reinterpret_cast<const SWiiBanner*>(m_pBannerFile); auto const src_ptr = banner->m_Comment[index]; - // Trim at first NULL + // Trim at first nullptr auto const length = std::find(src_ptr, src_ptr + COMMENT_SIZE, 0x0) - src_ptr; std::wstring src; |
