From c804e5578b41b3523e5cb933fd40d08ba132b347 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Oct 2018 16:38:05 +1100 Subject: Replace NULL and 0 with nullptr in clear cases of pure C++ code. --- src/CellBuffer.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 639558a65..1abff92dc 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -138,7 +138,7 @@ class LineVector : public ILineVector { LineStartIndex startsUTF16; LineStartIndex startsUTF32; public: - LineVector() : starts(256), perLine(0) { + LineVector() : starts(256), perLine(nullptr) { Init(); } // Deleted so LineVector objects can not be copied. @@ -650,7 +650,7 @@ bool CellBuffer::SetStyleFor(Sci::Position position, Sci::Position lengthStyle, const char *CellBuffer::DeleteChars(Sci::Position position, Sci::Position deleteLength, bool &startSequence) { // InsertString and DeleteChars are the bottleneck though which all changes occur PLATFORM_ASSERT(deleteLength > 0); - const char *data = 0; + const char *data = nullptr; if (!readOnly) { if (collectingUndo) { // Save into the undo/redo stack, but only the characters - not the formatting @@ -1148,7 +1148,7 @@ void CellBuffer::EndUndoAction() { void CellBuffer::AddUndoAction(Sci::Position token, bool mayCoalesce) { bool startSequence; - uh.AppendAction(containerAction, token, 0, 0, startSequence, mayCoalesce); + uh.AppendAction(containerAction, token, nullptr, 0, startSequence, mayCoalesce); } void CellBuffer::DeleteUndoHistory() { -- cgit v1.2.3