diff options
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
-rw-r--r-- | src/corelib/tools/qarraydataops.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h index f3de6b65a9..6b110c5143 100644 --- a/src/corelib/tools/qarraydataops.h +++ b/src/corelib/tools/qarraydataops.h @@ -62,7 +62,7 @@ template <class T> struct QPodArrayOps : public QArrayDataPointer<T> { - typedef T parameter_type; + typedef typename QArrayDataPointer<T>::parameter_type parameter_type; void appendInitialize(size_t newSize) { @@ -113,7 +113,7 @@ struct QPodArrayOps T *iter = this->end(); const T *const end = iter + n; for (; iter != end; ++iter) - ::memcpy(iter, &t, sizeof(T)); + *iter = t; this->size += int(n); } @@ -220,7 +220,7 @@ template <class T> struct QGenericArrayOps : public QArrayDataPointer<T> { - typedef const T ¶meter_type; + typedef typename QArrayDataPointer<T>::parameter_type parameter_type; void appendInitialize(size_t newSize) { |