From d3accd58aeb1ae49ef3ca9003fadbcd3daafb93e Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 4 Jun 2018 14:42:02 +1000 Subject: Backport: Use const in lexlib headers. Backport of changeset 7018:b14abcf3e0ac. --- lexlib/LexAccessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/LexAccessor.h') 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(chAttr); + const char attr = static_cast(chAttr); if (validLen + (pos - startSeg + 1) >= bufferSize) { // Too big for buffer so send directly pAccess->SetStyleFor(pos - startSeg + 1, attr); -- cgit v1.2.3