aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-10-26 05:25:33 +0000
committernyamatongwe <devnull@localhost>2002-10-26 05:25:33 +0000
commit3598ae95d11066ae0591a20470a11f00a105d9fa (patch)
treeb7a6fb9dc3b15588600747f86c7ac37b83326701 /src/StyleContext.cxx
parent8fbe38d3e33e3dd5b9acc47664793e011eb36433 (diff)
downloadscintilla-mirror-3598ae95d11066ae0591a20470a11f00a105d9fa.tar.gz
Patch from Philippe to hoist getting of next char into method, add a
Forward(n) method and use unsigned integers for positions.
Diffstat (limited to 'src/StyleContext.cxx')
-rw-r--r--src/StyleContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StyleContext.cxx b/src/StyleContext.cxx
index bdae28196..64fc7a048 100644
--- a/src/StyleContext.cxx
+++ b/src/StyleContext.cxx
@@ -29,7 +29,7 @@ static void getRange(unsigned int start,
s[i] = '\0';
}
-void StyleContext::GetCurrent(char *s, int len) {
+void StyleContext::GetCurrent(char *s, unsigned int len) {
getRange(styler.GetStartSegment(), currentPos - 1, styler, s, len);
}
@@ -46,6 +46,6 @@ static void getRangeLowered(unsigned int start,
s[i] = '\0';
}
-void StyleContext::GetCurrentLowered(char *s, int len) {
+void StyleContext::GetCurrentLowered(char *s, unsigned int len) {
getRangeLowered(styler.GetStartSegment(), currentPos - 1, styler, s, len);
}