From cda15af9657880e91ccf65603e109b202d9e78bf Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 6 Apr 2017 21:04:37 +1000 Subject: Added const where possible. --- 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 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 -- cgit v1.2.3