diff options
-rw-r--r-- | src/Document.cxx | 18 | ||||
-rw-r--r-- | src/PerLine.cxx | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index fe58728ee..037371cd6 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1212,7 +1212,7 @@ bool Document::DeleteChars(Sci::Position pos, Sci::Position len) { DocModification( ModificationFlags::BeforeDelete | ModificationFlags::User, pos, len, - 0, 0)); + 0, nullptr)); const Sci::Line prevLinesTotal = LinesTotal(); const bool startSavePoint = cb.IsSavePoint(); bool startSequence = false; @@ -2413,7 +2413,7 @@ Sci::Line Document::GetMaxLineState() const noexcept { void SCI_METHOD Document::ChangeLexerState(Sci_Position start, Sci_Position end) { const DocModification mh(ModificationFlags::LexerState, start, - end-start, 0, 0, 0); + end-start, 0, nullptr, 0); NotifyModified(mh); } @@ -2426,20 +2426,20 @@ StyledText Document::MarginStyledText(Sci::Line line) const noexcept { void Document::MarginSetText(Sci::Line line, const char *text) { Margins()->SetText(line, text); const DocModification mh(ModificationFlags::ChangeMargin, LineStart(line), - 0, 0, 0, line); + 0, 0, nullptr, line); NotifyModified(mh); } void Document::MarginSetStyle(Sci::Line line, int style) { Margins()->SetStyle(line, style); NotifyModified(DocModification(ModificationFlags::ChangeMargin, LineStart(line), - 0, 0, 0, line)); + 0, 0, nullptr, line)); } void Document::MarginSetStyles(Sci::Line line, const unsigned char *styles) { Margins()->SetStyles(line, styles); NotifyModified(DocModification(ModificationFlags::ChangeMargin, LineStart(line), - 0, 0, 0, line)); + 0, 0, nullptr, line)); } void Document::MarginClearAll() { @@ -2462,7 +2462,7 @@ void Document::AnnotationSetText(Sci::Line line, const char *text) { Annotations()->SetText(line, text); const int linesAfter = AnnotationLines(line); DocModification mh(ModificationFlags::ChangeAnnotation, LineStart(line), - 0, 0, 0, line); + 0, 0, nullptr, line); mh.annotationLinesAdded = linesAfter - linesBefore; NotifyModified(mh); } @@ -2472,7 +2472,7 @@ void Document::AnnotationSetStyle(Sci::Line line, int style) { if (line >= 0 && line < LinesTotal()) { Annotations()->SetStyle(line, style); const DocModification mh(ModificationFlags::ChangeAnnotation, LineStart(line), - 0, 0, 0, line); + 0, 0, nullptr, line); NotifyModified(mh); } } @@ -2505,7 +2505,7 @@ void Document::EOLAnnotationSetText(Sci::Line line, const char *text) { if (line >= 0 && line < LinesTotal()) { EOLAnnotations()->SetText(line, text); const DocModification mh(ModificationFlags::ChangeEOLAnnotation, LineStart(line), - 0, 0, 0, line); + 0, 0, nullptr, line); NotifyModified(mh); } } @@ -2514,7 +2514,7 @@ void Document::EOLAnnotationSetStyle(Sci::Line line, int style) { if (line >= 0 && line < LinesTotal()) { EOLAnnotations()->SetStyle(line, style); const DocModification mh(ModificationFlags::ChangeEOLAnnotation, LineStart(line), - 0, 0, 0, line); + 0, 0, nullptr, line); NotifyModified(mh); } } diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 068d5d0a5..762891ee3 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -102,7 +102,7 @@ void LineMarkers::Init() { void LineMarkers::InsertLine(Sci::Line line) { if (markers.Length()) { - markers.Insert(line, 0); + markers.Insert(line, nullptr); } } |