aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-24 00:04:54 +1000
committernyamatongwe <devnull@localhost>2013-05-24 00:04:54 +1000
commit44da106995e3b3ca4068f584c16f59d8fced4e69 (patch)
tree72512a72ac08ef47a2f40d9b30b0f208a245fda0 /lexlib/StyleContext.h
parent2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff)
downloadscintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.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) {