From c085f3f8458110eca0874343b45b34acc9827631 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:16:31 +1000 Subject: Drop reinterpret_cast when can implicit cast to void* or const void*. --- src/PositionCache.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(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(positions + len), s_, len)== 0)) { + (memcmp(positions + len, s_, len)== 0)) { for (unsigned int i=0; i