diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-24 12:50:30 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-24 12:50:30 +1000 |
commit | 8d53838c4e5fafd24154b33e2d24126e55853ab9 (patch) | |
tree | fd8ffb0174df13cee89f3ca3d37285314be86c8d | |
parent | 2042a1d9fc11668f154d69eb8167fcaf299e8a85 (diff) | |
download | scintilla-mirror-8d53838c4e5fafd24154b33e2d24126e55853ab9.tar.gz |
Mark const methods const.
-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); |