From 7e9f3208e5c6eb5036cbdfc0f85245f0aa97ab7c Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 4 Jun 2018 14:42:02 +1000 Subject: Use const in lexlib headers. --- lexlib/StyleContext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlib/StyleContext.h') diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index cc61dea3d..bc49197e4 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -167,8 +167,8 @@ public: posRelative = currentPos; offsetRelative = 0; } - Sci_Position diffRelative = n - offsetRelative; - Sci_Position posNew = multiByteAccess->GetRelativePosition(posRelative, diffRelative); + const Sci_Position diffRelative = n - offsetRelative; + const Sci_Position posNew = multiByteAccess->GetRelativePosition(posRelative, diffRelative); const int chReturn = multiByteAccess->GetCharacterAndWidth(posNew, nullptr); posRelative = posNew; currentPosLastRelative = currentPos; -- cgit v1.2.3