aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-03-13 21:22:03 +0000
committernyamatongwe <devnull@localhost>2010-03-13 21:22:03 +0000
commita158742c0231b348b4663b9900e7da95e05cde48 (patch)
treea506a530b0e449bbf814f6f98c2d19c2e13dcb76 /src/StyleContext.h
parent5c0fdd9dd3f026927e46488ab198213e81935b80 (diff)
downloadscintilla-mirror-a158742c0231b348b4663b9900e7da95e05cde48.tar.gz
Adding const to methods where possible.
Diffstat (limited to 'src/StyleContext.h')
-rw-r--r--src/StyleContext.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index a2e058a70..4e175bc29 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -65,7 +65,7 @@ public:
void Complete() {
styler.ColourTo(currentPos - 1, state);
}
- bool More() {
+ bool More() const {
return currentPos < endPos;
}
void Forward() {
@@ -108,10 +108,10 @@ public:
int GetRelative(int n) {
return static_cast<unsigned char>(styler.SafeGetCharAt(currentPos+n));
}
- bool Match(char ch0) {
+ bool Match(char ch0) const {
return ch == static_cast<unsigned char>(ch0);
}
- bool Match(char ch0, char ch1) {
+ bool Match(char ch0, char ch1) const {
return (ch == static_cast<unsigned char>(ch0)) && (chNext == static_cast<unsigned char>(ch1));
}
bool Match(const char *s) {