From d97e0e4187f3130e2f06bc032040bc25485a2ece Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 Apr 2017 19:44:24 +1000 Subject: Remove unnecessary casts. --- 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 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(reinterpret_cast(positions + len)), s_, len); + memcpy(reinterpret_cast(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(reinterpret_cast(positions + len)), s_, len)== 0)) { + (memcmp(reinterpret_cast(positions + len), s_, len)== 0)) { for (unsigned int i=0; i