diff options
Diffstat (limited to 'include/clang/Rewrite/Core/RewriteRope.h')
-rw-r--r-- | include/clang/Rewrite/Core/RewriteRope.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/clang/Rewrite/Core/RewriteRope.h b/include/clang/Rewrite/Core/RewriteRope.h index 5167c50752..f312aedc08 100644 --- a/include/clang/Rewrite/Core/RewriteRope.h +++ b/include/clang/Rewrite/Core/RewriteRope.h @@ -61,7 +61,7 @@ namespace clang { unsigned StartOffs; unsigned EndOffs; - RopePiece() : StrData(0), StartOffs(0), EndOffs(0) {} + RopePiece() : StrData(nullptr), StartOffs(0), EndOffs(0) {} RopePiece(RopeRefCountString *Str, unsigned Start, unsigned End) : StrData(Str), StartOffs(Start), EndOffs(End) { @@ -122,7 +122,8 @@ namespace clang { // begin iterator. RopePieceBTreeIterator(const void /*RopePieceBTreeNode*/ *N); // end iterator - RopePieceBTreeIterator() : CurNode(0), CurPiece(0), CurChar(0) {} + RopePieceBTreeIterator() + : CurNode(nullptr), CurPiece(nullptr), CurChar(0) {} char operator*() const { return (*CurPiece)[CurChar]; @@ -195,9 +196,9 @@ class RewriteRope { enum { AllocChunkSize = 4080 }; public: - RewriteRope() : AllocBuffer(0), AllocOffs(AllocChunkSize) {} + RewriteRope() : AllocBuffer(nullptr), AllocOffs(AllocChunkSize) {} RewriteRope(const RewriteRope &RHS) - : Chunks(RHS.Chunks), AllocBuffer(0), AllocOffs(AllocChunkSize) { + : Chunks(RHS.Chunks), AllocBuffer(nullptr), AllocOffs(AllocChunkSize) { } ~RewriteRope() { |