diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-06-04 14:42:02 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-06-04 14:42:02 +1000 | 
| commit | 7e9f3208e5c6eb5036cbdfc0f85245f0aa97ab7c (patch) | |
| tree | 3f111e56f15dad263e9993d354d7c29f82a49e5f /lexlib/StyleContext.h | |
| parent | 63a526d16065007457d26a577c3848c99269f0e8 (diff) | |
| download | scintilla-mirror-7e9f3208e5c6eb5036cbdfc0f85245f0aa97ab7c.tar.gz | |
Use const in lexlib headers.
Diffstat (limited to 'lexlib/StyleContext.h')
| -rw-r--r-- | lexlib/StyleContext.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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; | 
