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 /lexlib/LexAccessor.h | |
| 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 'lexlib/LexAccessor.h')
| -rw-r--r-- | lexlib/LexAccessor.h | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h index 59ae11346..4223f302d 100644 --- a/lexlib/LexAccessor.h +++ b/lexlib/LexAccessor.h @@ -90,7 +90,7 @@ public:  		}  		return buf[position - startPos];  	} -	bool IsLeadByte(char ch) { +	bool IsLeadByte(char ch) const {  		return pAccess->IsDBCSLeadByte(ch);  	}  	EncodingType Encoding() const { @@ -104,13 +104,13 @@ public:  		}  		return true;  	} -	char StyleAt(int position) { +	char StyleAt(int position) const {  		return static_cast<char>(pAccess->StyleAt(position) & mask);  	} -	int GetLine(int position) { +	int GetLine(int position) const {  		return pAccess->LineFromPosition(position);  	} -	int LineStart(int line) { +	int LineStart(int line) const {  		return pAccess->LineStart(line);  	}  	int LineEnd(int line) { @@ -126,7 +126,7 @@ public:  				return startNext - 1;  		}  	} -	int LevelAt(int line) { +	int LevelAt(int line) const {  		return pAccess->GetLevel(line);  	}  	int Length() const { @@ -140,7 +140,7 @@ public:  			validLen = 0;  		}  	} -	int GetLineState(int line) { +	int GetLineState(int line) const {  		return pAccess->GetLineState(line);  	}  	int SetLineState(int line, int state) { | 
