From 85237dd55cd67cf9f72a751f5a275a910350e5cd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 24 May 2013 00:04:54 +1000 Subject: Made methods const where they can be and are logically const as well. --- lexers/LexCPP.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexers/LexCPP.cxx') diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index a94132904..b3c934618 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -153,7 +153,7 @@ public: bool IsInactive() const { return state != 0; } - bool CurrentIfTaken() { + bool CurrentIfTaken() const { return (ifTaken & maskLevel()) != 0; } void StartSection(bool on) { @@ -188,7 +188,7 @@ public: class PPStates { std::vector vlls; public: - LinePPState ForLine(int line) { + LinePPState ForLine(int line) const { if ((line > 0) && (vlls.size() > static_cast(line))) { return vlls[line]; } else { -- cgit v1.2.3