aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.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/StyleContext.h
parent7ed728ef6188885e01221a6d89be7ce8707e4ac1 (diff)
downloadscintilla-mirror-d3accd58aeb1ae49ef3ca9003fadbcd3daafb93e.tar.gz
Backport: Use const in lexlib headers.
Backport of changeset 7018:b14abcf3e0ac.
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r--lexlib/StyleContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h
index 6e457dd59..8cb683619 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;