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 /lexers/LexCPP.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 'lexers/LexCPP.cxx')
| -rw-r--r-- | lexers/LexCPP.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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<LinePPState> vlls;  public: -	LinePPState ForLine(int line) { +	LinePPState ForLine(int line) const {  		if ((line > 0) && (vlls.size() > static_cast<size_t>(line))) {  			return vlls[line];  		} else { | 
