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 | 93c33490b77157f2e5422f4962ac4b88f4aea7c5 (patch) | |
tree | 13a4dc633414313843a39ab24e29d997e570b308 /src/Editor.cxx | |
parent | df60ea0a4ca15e7fcaad38b47cd8cf4cd642e68c (diff) | |
download | scintilla-mirror-93c33490b77157f2e5422f4962ac4b88f4aea7c5.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()); |