aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexAccessor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-06-04 14:42:02 +1000
committerNeil <nyamatongwe@gmail.com>2018-06-04 14:42:02 +1000
commitd3accd58aeb1ae49ef3ca9003fadbcd3daafb93e (patch)
treed923fe71efe720dcfb30fb3825a147bead0891b4 /lexlib/LexAccessor.h
parent7ed728ef6188885e01221a6d89be7ce8707e4ac1 (diff)
downloadscintilla-mirror-d3accd58aeb1ae49ef3ca9003fadbcd3daafb93e.tar.gz
Backport: Use const in lexlib headers.
Backport of changeset 7018:b14abcf3e0ac.
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 822c81dfb..f8c180e14 100644
--- a/lexlib/LexAccessor.h
+++ b/lexlib/LexAccessor.h
@@ -170,7 +170,7 @@ public:
if (validLen + (pos - startSeg + 1) >= bufferSize)
Flush();
- char attr = static_cast<char>(chAttr);
+ const char attr = static_cast<char>(chAttr);
if (validLen + (pos - startSeg + 1) >= bufferSize) {
// Too big for buffer so send directly
pAccess->SetStyleFor(pos - startSeg + 1, attr);