From d802d392811be44d34ae9cd23f616db93e54c50f Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 9 Mar 2014 21:14:26 +0100 Subject: clang-modernize -use-nullptr and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine --- Source/Core/DiscIO/BannerLoaderWii.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/DiscIO/BannerLoaderWii.cpp') 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(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; -- cgit v1.2.3