From 416fa34b873f40393a2e52827e9ab2a12133a921 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 8 Jun 2014 08:38:12 +0000 Subject: [C++11] Use 'nullptr'. Unittests edition. llvm-svn: 210423 --- clang/unittests/Tooling/RefactoringTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/unittests/Tooling/RefactoringTest.cpp') diff --git a/clang/unittests/Tooling/RefactoringTest.cpp b/clang/unittests/Tooling/RefactoringTest.cpp index b1ed3c72be8..d600880efbe 100644 --- a/clang/unittests/Tooling/RefactoringTest.cpp +++ b/clang/unittests/Tooling/RefactoringTest.cpp @@ -236,7 +236,7 @@ public: OutStream << Content; OutStream.close(); const FileEntry *File = Context.Files.getFile(Path); - assert(File != NULL); + assert(File != nullptr); StringRef Found = TemporaryFiles.GetOrCreateValue(Name, Path.str()).second; assert(Found == Path); @@ -253,7 +253,7 @@ public: // FIXME: Figure out whether there is a way to get the SourceManger to // reopen the file. std::unique_ptr FileBuffer( - Context.Files.getBufferForFile(Path, NULL)); + Context.Files.getBufferForFile(Path, nullptr)); return FileBuffer->getBuffer(); } -- cgit v1.2.3