mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user