diff options
author | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
commit | 85237dd55cd67cf9f72a751f5a275a910350e5cd (patch) | |
tree | 6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /src/Decoration.cxx | |
parent | d6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff) | |
download | scintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r-- | src/Decoration.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 4594a3a7a..cda460a48 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -29,7 +29,7 @@ Decoration::Decoration(int indicator_) : next(0), indicator(indicator_) { Decoration::~Decoration() { } -bool Decoration::Empty() { +bool Decoration::Empty() const { return (rs.Runs() == 1) && (rs.AllSameAs(0)); } @@ -159,7 +159,7 @@ void DecorationList::DeleteAnyEmpty() { } } -int DecorationList::AllOnFor(int position) { +int DecorationList::AllOnFor(int position) const { int mask = 0; for (Decoration *deco=root; deco; deco = deco->next) { if (deco->rs.ValueAt(position)) { |