diff options
| author | nyamatongwe <unknown> | 2012-05-26 13:53:54 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2012-05-26 13:53:54 +1000 | 
| commit | 9ccecdb500448a1aef27dab09c8e8e12798cb175 (patch) | |
| tree | b90dae8d7d4597842ce7545265aa3b04a751466d /src | |
| parent | a35131a4830143bc908bdc3c50323ced8d474fd6 (diff) | |
| download | scintilla-mirror-9ccecdb500448a1aef27dab09c8e8e12798cb175.tar.gz | |
Reduce code to avoid warning from cppcheck.
Diffstat (limited to 'src')
| -rw-r--r-- | src/UniConversion.cxx | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index 40ac982c9..ffe67f75c 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -240,11 +240,9 @@ int UTF8Classify(const unsigned char *us, int len) {  		} else {  			return UTF8MaskInvalid | 1;  		} -	} else if (*us >= 0xc0) { -		// Overlong encoding -		return UTF8MaskInvalid | 1;  	} else { -		// Trail byte +		// 0xc0 .. 0xc1 is overlong encoding +		// 0x80 .. 0xbf is trail byte  		return UTF8MaskInvalid | 1;  	}  }  | 
