aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-23 13:06:42 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-23 13:06:42 +1000
commit3b5496d80c0fb79ebad20d7253b944a072d5cd7f (patch)
tree04038a7fd59eaaa532cb082e87cd4532b1359f52 /src
parent54b7046f8a0c1924d83ea0f6728bc96a8f3e8d6e (diff)
downloadscintilla-mirror-3b5496d80c0fb79ebad20d7253b944a072d5cd7f.tar.gz
Make drawing of markers const.
Diffstat (limited to 'src')
-rw-r--r--src/LineMarker.cxx2
-rw-r--r--src/LineMarker.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx
index 938288b1f..8ae815a65 100644
--- a/src/LineMarker.cxx
+++ b/src/LineMarker.cxx
@@ -71,7 +71,7 @@ static void DrawMinus(Surface *surface, int centreX, int centreY, int armSize, C
surface->FillRectangle(rcH, fore);
}
-void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, typeOfFold tFold, int marginStyle) {
+void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, typeOfFold tFold, int marginStyle) const {
ColourDesired head = back;
ColourDesired body = back;
ColourDesired tail = back;
diff --git a/src/LineMarker.h b/src/LineMarker.h
index c8c9e10a1..4004a8a42 100644
--- a/src/LineMarker.h
+++ b/src/LineMarker.h
@@ -66,7 +66,7 @@ public:
void SetXPM(const char *textForm);
void SetXPM(const char *const *linesForm);
void SetRGBAImage(Point sizeRGBAImage, float scale, const unsigned char *pixelsRGBAImage);
- void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter, typeOfFold tFold, int marginStyle);
+ void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter, typeOfFold tFold, int marginStyle) const;
};
#ifdef SCI_NAMESPACE