From b23b4992370221b27d64fa5b1da01a52aa271bef 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210423 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Tooling/RefactoringTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unittests/Tooling/RefactoringTest.cpp') diff --git a/unittests/Tooling/RefactoringTest.cpp b/unittests/Tooling/RefactoringTest.cpp index b1ed3c72be..d600880efb 100644 --- a/unittests/Tooling/RefactoringTest.cpp +++ b/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.1