aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-06 21:04:37 +1000
commitcda15af9657880e91ccf65603e109b202d9e78bf (patch)
treeeb730cdcc810842ce2255c3d2af9872041583a74 /lexlib/StyleContext.h
parentdba2fe55b8a4ab4ac34795fe4a4b30a729c77016 (diff)
downloadscintilla-mirror-cda15af9657880e91ccf65603e109b202d9e78bf.tar.gz
Added const where possible.
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 6cbda358e..045939f14 100644
--- a/lexlib/StyleContext.h
+++ b/lexlib/StyleContext.h
@@ -130,7 +130,7 @@ public:
}
}
void ForwardBytes(Sci_Position nb) {
- Sci_PositionU forwardPos = currentPos + nb;
+ const Sci_PositionU forwardPos = currentPos + nb;
while (forwardPos > currentPos) {
Forward();
}
@@ -165,7 +165,7 @@ public:
}
Sci_Position diffRelative = n - offsetRelative;
Sci_Position posNew = multiByteAccess->GetRelativePosition(posRelative, diffRelative);
- int chReturn = multiByteAccess->GetCharacterAndWidth(posNew, 0);
+ const int chReturn = multiByteAccess->GetCharacterAndWidth(posNew, 0);
posRelative = posNew;
currentPosLastRelative = currentPos;
offsetRelative = n;