aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
commite462c018b9dda9e111a07d298bae8fcebb14c8b2 (patch)
tree03fec25e9b83d576f73d91facdd092e4eeece597 /src/CellBuffer.cxx
parent083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (diff)
downloadscintilla-mirror-e462c018b9dda9e111a07d298bae8fcebb14c8b2.tar.gz
Backport: Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Backport of changeset 7111:e3cecaf6bd37.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 76865545a..17a30a565 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -137,7 +137,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.
@@ -649,7 +649,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
@@ -1147,7 +1147,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() {