# HG changeset patch # User Neil # Date 1492586191 -36000 # Node ID e4f249dbdc30e33291297c312042b760f825f4c0 # Parent ba90de635fc390837399a66841392d1e87c829d5 Drop reinterpret_cast when can implicit cast to void* or const void*. diff -r ba90de635fc3 -r e4f249dbdc30 src/PositionCache.cxx --- a/src/PositionCache.cxx Wed Apr 19 15:30:08 2017 +1000 +++ b/src/PositionCache.cxx Wed Apr 19 17:16:31 2017 +1000 @@ -575,7 +575,7 @@ for (unsigned int i=0; i(positions + len), s_, len); + memcpy(positions + len, s_, len); } } @@ -594,7 +594,7 @@ 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