aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexAccessor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
commitcda15af9657880e91ccf65603e109b202d9e78bf (patch)
treeeb730cdcc810842ce2255c3d2af9872041583a74 /lexlib/LexAccessor.h
parentdba2fe55b8a4ab4ac34795fe4a4b30a729c77016 (diff)
downloadscintilla-mirror-cda15af9657880e91ccf65603e109b202d9e78bf.tar.gz
Added const where possible.
Diffstat (limited to 'lexlib/LexAccessor.h')
-rw-r--r--lexlib/LexAccessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h
index f2cce50bd..064a17581 100644
--- a/lexlib/LexAccessor.h
+++ b/lexlib/LexAccessor.h
@@ -125,7 +125,7 @@ public:
} else {
// Old interface means only '\r', '\n' and '\r\n' line ends.
Sci_Position startNext = pAccess->LineStart(line+1);
- char chLineEnd = SafeGetCharAt(startNext-1);
+ const char chLineEnd = SafeGetCharAt(startNext-1);
if (chLineEnd == '\n' && (SafeGetCharAt(startNext-2) == '\r'))
return startNext - 2;
else