diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:34:28 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-06-22 13:34:28 +1000 | 
| commit | ee07f2adf11213314cdb76b04f1577d01692eab5 (patch) | |
| tree | 7a2b0d1f265f3593ad6554ec3bea5dc0fee5ef18 /src/Editor.cxx | |
| parent | d367662a1f9726aa3d8638ec05b5bb64dbdfb2c6 (diff) | |
| download | scintilla-mirror-ee07f2adf11213314cdb76b04f1577d01692eab5.tar.gz | |
Further use of const in layout and drawing.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index d0f30b05d..e6a72e4cd 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2567,7 +2567,7 @@ void Editor::DrawEOL(Surface *surface, const ViewStyle &vsDraw, PRectangle rcLin  			if (UTF8IsAscii(chEOL)) {  				ctrlChar = ControlCharacterString(chEOL);  			} else { -				Representation *repr = reprs.RepresentationFromCharacter(ll->chars + eolPos, ll->numCharsInLine - eolPos); +				const Representation *repr = reprs.RepresentationFromCharacter(ll->chars + eolPos, ll->numCharsInLine - eolPos);  				if (repr) {  					ctrlChar = repr->stringRep.c_str();  					eolPos = ll->numCharsInLine; @@ -9260,7 +9260,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		break;  	case SCI_GETREPRESENTATION: { -			Representation *repr = reprs.RepresentationFromCharacter( +			const Representation *repr = reprs.RepresentationFromCharacter(  				reinterpret_cast<const char *>(wParam), UTF8MaxBytes);  			if (repr) {  				return StringResult(lParam, repr->stringRep.c_str()); | 
