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/Common/IniFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/IniFile.cpp') diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 2cc1a97e60..604aefc89c 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -212,7 +212,7 @@ const IniFile::Section* IniFile::GetSection(const std::string& sectionName) cons for (const Section& sect : sections) if (!strcasecmp(sect.name.c_str(), sectionName.c_str())) return (&(sect)); - return 0; + return nullptr; } IniFile::Section* IniFile::GetSection(const std::string& sectionName) @@ -220,7 +220,7 @@ IniFile::Section* IniFile::GetSection(const std::string& sectionName) for (Section& sect : sections) if (!strcasecmp(sect.name.c_str(), sectionName.c_str())) return (&(sect)); - return 0; + return nullptr; } IniFile::Section* IniFile::GetOrCreateSection(const std::string& sectionName) @@ -335,7 +335,7 @@ bool IniFile::Load(const std::string& filename, bool keep_current_data) if (in.fail()) return false; - Section* current_section = NULL; + Section* current_section = nullptr; while (!in.eof()) { char templine[MAX_BYTES]; -- cgit v1.2.3