diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 | 
| commit | c804e5578b41b3523e5cb933fd40d08ba132b347 (patch) | |
| tree | 44689f9ac11b536da1ecab469bea920ae8e0895b /src/CellBuffer.cxx | |
| parent | c5dedff99f306588a7217d40a4281db7d1baffaa (diff) | |
| download | scintilla-mirror-c804e5578b41b3523e5cb933fd40d08ba132b347.tar.gz | |
Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Diffstat (limited to 'src/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| 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<POS> startsUTF16;  	LineStartIndex<POS> 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() { | 
