diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:24 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:24 +1000 | 
| commit | d97e0e4187f3130e2f06bc032040bc25485a2ece (patch) | |
| tree | d197f51b037eeef5fae044bcd10e9e5901898006 | |
| parent | 978e85754e25c46bddbc034938fc51e9d35372c0 (diff) | |
| download | scintilla-mirror-d97e0e4187f3130e2f06bc032040bc25485a2ece.tar.gz | |
Remove unnecessary casts.
| -rw-r--r-- | src/PositionCache.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 1572f2beb..1b69fccdb 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -575,7 +575,7 @@ void PositionCacheEntry::Set(unsigned int styleNumber_, const char *s_,  		for (unsigned int i=0; i<len; i++) {  			positions[i] = positions_[i];  		} -		memcpy(reinterpret_cast<char *>(reinterpret_cast<void *>(positions + len)), s_, len); +		memcpy(reinterpret_cast<void *>(positions + len), s_, len);  	}  } @@ -594,7 +594,7 @@ void PositionCacheEntry::Clear() {  bool PositionCacheEntry::Retrieve(unsigned int styleNumber_, const char *s_,  	unsigned int len_, XYPOSITION *positions_) const {  	if ((styleNumber == styleNumber_) && (len == len_) && -		(memcmp(reinterpret_cast<char *>(reinterpret_cast<void *>(positions + len)), s_, len)== 0)) { +		(memcmp(reinterpret_cast<void *>(positions + len), s_, len)== 0)) {  		for (unsigned int i=0; i<len; i++) {  			positions_[i] = positions[i];  		} | 
