aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-05-24 00:04:54 +1000
committernyamatongwe <unknown>2013-05-24 00:04:54 +1000
commit85237dd55cd67cf9f72a751f5a275a910350e5cd (patch)
tree6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /lexlib/StyleContext.h
parentd6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff)
downloadscintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r--lexlib/StyleContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h
index c79d42e37..319f51088 100644
--- a/lexlib/StyleContext.h
+++ b/lexlib/StyleContext.h
@@ -188,7 +188,7 @@ public:
styler.ColourTo(currentPos - ((currentPos > lengthDocument) ? 2 : 1), state);
state = state_;
}
- int LengthCurrent() {
+ int LengthCurrent() const {
return currentPos - styler.GetStartSegment();
}
int GetRelative(int n) {