diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:16:31 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:16:31 +1000 |
commit | c085f3f8458110eca0874343b45b34acc9827631 (patch) | |
tree | c543a2f8c848bb1fe462cbf49f29a3410d30e98b /src/PositionCache.cxx | |
parent | 6911118a49680fb15d7f9119567c149397307260 (diff) | |
download | scintilla-mirror-c085f3f8458110eca0874343b45b34acc9827631.tar.gz |
Drop reinterpret_cast when can implicit cast to void* or const void*.
Diffstat (limited to 'src/PositionCache.cxx')
-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 fff1d58a6..c5ba231de 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<void *>(positions + len), s_, len); + memcpy(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<void *>(positions + len), s_, len)== 0)) { + (memcmp(positions + len, s_, len)== 0)) { for (unsigned int i=0; i<len; i++) { positions_[i] = positions[i]; } |