diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.h | 2 | ||||
-rw-r--r-- | src/EditView.cxx | 2 | ||||
-rw-r--r-- | src/EditView.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.h b/src/Document.h index b63962086..e84be14e4 100644 --- a/src/Document.h +++ b/src/Document.h @@ -307,7 +307,7 @@ public: void TentativeStart() { cb.TentativeStart(); } void TentativeCommit() { cb.TentativeCommit(); } void TentativeUndo(); - bool TentativeActive() { return cb.TentativeActive(); } + bool TentativeActive() const { return cb.TentativeActive(); } const char * SCI_METHOD BufferPointer() { return cb.BufferPointer(); } const char *RangePointer(int position, int rangeLength) { return cb.RangePointer(position, rangeLength); } diff --git a/src/EditView.cxx b/src/EditView.cxx index af8372a51..58d8a1415 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1169,7 +1169,7 @@ static void DrawWrapIndentAndMarker(Surface *surface, const ViewStyle &vsDraw, c void EditView::DrawBackground(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, PRectangle rcLine, Range lineRange, int posLineStart, int xStart, - int subLine, ColourOptional background) { + int subLine, ColourOptional background) const { const bool selBackDrawn = vsDraw.SelectionBackgroundDrawn(); bool inIndentation = subLine == 0; // Do not handle indentation except on first subline. diff --git a/src/EditView.h b/src/EditView.h index b136d229a..ea59ac03a 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -106,7 +106,7 @@ public: int xStart, PRectangle rcLine, int subLine) const; void DrawBackground(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, PRectangle rcLine, Range lineRange, int posLineStart, int xStart, - int subLine, ColourOptional background); + int subLine, ColourOptional background) const; void DrawForeground(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, int lineVisible, PRectangle rcLine, Range lineRange, int posLineStart, int xStart, int subLine, ColourOptional background); |