aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
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 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;