diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index b75c2975b6..f3ef9b97c3 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -456,7 +456,7 @@ void QVector::reallocData(const int asize, const int aalloc, QArrayData::Allo new (dst++) T(*srcBegin++); } } else { - ::memcpy(dst, srcBegin, (srcEnd - srcBegin) * sizeof(T)); + ::memcpy(static_cast(dst), srcBegin, (srcEnd - srcBegin) * sizeof(T)); dst += srcEnd - srcBegin; // destruct unused / not moved data