[C++11] Make use of 'nullptr' in the Support library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2014-04-07 04:17:22 +00:00
parent b81024bc6e
commit 34bc6b6e78
75 changed files with 336 additions and 328 deletions
+3 -3
View File
@@ -814,7 +814,7 @@ public:
}
/// Construct end iterator.
directory_iterator() : State(0) {}
directory_iterator() : State(nullptr) {}
// No operator++ because we need error_code.
directory_iterator &increment(error_code &ec) {
@@ -828,9 +828,9 @@ public:
bool operator==(const directory_iterator &RHS) const {
if (State == RHS.State)
return true;
if (RHS.State == 0)
if (RHS.State == nullptr)
return State->CurrentEntry == directory_entry();
if (State == 0)
if (State == nullptr)
return RHS.State->CurrentEntry == directory_entry();
return State->CurrentEntry == RHS.State->CurrentEntry;
}