diff options
author | nyamatongwe <unknown> | 2010-03-13 21:22:03 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-03-13 21:22:03 +0000 |
commit | 1b2967ee84232e3053eb6d7299f11982b91d6d81 (patch) | |
tree | a506a530b0e449bbf814f6f98c2d19c2e13dcb76 /src/StyleContext.h | |
parent | 0f626757c6c63c22943ad7e86650b9ad8787584f (diff) | |
download | scintilla-mirror-1b2967ee84232e3053eb6d7299f11982b91d6d81.tar.gz |
Adding const to methods where possible.
Diffstat (limited to 'src/StyleContext.h')
-rw-r--r-- | src/StyleContext.h | 6 |
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) { |