diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-01-04 13:32:23 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-01-04 13:32:23 +1100 | 
| commit | 75de132ed9cd2b59d33e0a721bac285db2528949 (patch) | |
| tree | 7b0d2050dffec113ec07637b575cd3075d269e44 /src | |
| parent | ef94015d9934b956d23531e2d3bcc2cf3d36c820 (diff) | |
| download | scintilla-mirror-75de132ed9cd2b59d33e0a721bac285db2528949.tar.gz | |
Mark some const methods as const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/EditView.cxx | 2 | ||||
| -rw-r--r-- | src/EditView.h | 2 | ||||
| -rw-r--r-- | src/XPM.cxx | 2 | ||||
| -rw-r--r-- | src/XPM.h | 2 | 
4 files changed, 4 insertions, 4 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 5c622568b..a35a46b54 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -2085,7 +2085,7 @@ void EditView::PaintText(Surface *surfaceWindow, const EditModel &model, PRectan  }  void EditView::FillLineRemainder(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, -	int line, PRectangle rcArea, int subLine) { +	int line, PRectangle rcArea, int subLine) const {  		int eolInSelection = 0;  		int alpha = SC_ALPHA_NOALPHA;  		if (!hideSelection) { diff --git a/src/EditView.h b/src/EditView.h index 8551daa3b..9bdf1b86c 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -143,7 +143,7 @@ public:  	void PaintText(Surface *surfaceWindow, const EditModel &model, PRectangle rcArea, PRectangle rcClient,  		const ViewStyle &vsDraw);  	void FillLineRemainder(Surface *surface, const EditModel &model, const ViewStyle &vsDraw, const LineLayout *ll, -		int line, PRectangle rcArea, int subLine); +		int line, PRectangle rcArea, int subLine) const;  	long FormatRange(bool draw, Sci_RangeToFormat *pfr, Surface *surface, Surface *surfaceMeasure,  		const EditModel &model, const ViewStyle &vs);  }; diff --git a/src/XPM.cxx b/src/XPM.cxx index 4841e4ff2..49b58038a 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -46,7 +46,7 @@ ColourDesired XPM::ColourFromCode(int ch) const {  	return colourCodeTable[ch];  } -void XPM::FillRun(Surface *surface, int code, int startX, int y, int x) { +void XPM::FillRun(Surface *surface, int code, int startX, int y, int x) const {  	if ((code != codeTransparent) && (startX != x)) {  		PRectangle rc = PRectangle::FromInts(startX, y, x, y + 1);  		surface->FillRectangle(rc, ColourFromCode(code)); @@ -23,7 +23,7 @@ class XPM {  	ColourDesired colourCodeTable[256];  	char codeTransparent;  	ColourDesired ColourFromCode(int ch) const; -	void FillRun(Surface *surface, int code, int startX, int y, int x); +	void FillRun(Surface *surface, int code, int startX, int y, int x) const;  public:  	explicit XPM(const char *textForm);  	explicit XPM(const char *const *linesForm);  | 
