diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h index 11494a5f6f..5b59221f10 100644 --- a/src/corelib/tools/qarraydataops.h +++ b/src/corelib/tools/qarraydataops.h @@ -58,6 +58,8 @@ template struct QPodArrayOps : QTypedArrayData { + typedef T parameter_type; + void appendInitialize(size_t newSize) { Q_ASSERT(this->isMutable()); @@ -81,7 +83,7 @@ struct QPodArrayOps this->size += e - b; } - void copyAppend(size_t n, const T &t) + void copyAppend(size_t n, parameter_type t) { Q_ASSERT(this->isMutable()); Q_ASSERT(!this->isShared()); @@ -145,6 +147,8 @@ template struct QGenericArrayOps : QTypedArrayData { + typedef const T ¶meter_type; + void appendInitialize(size_t newSize) { Q_ASSERT(this->isMutable()); @@ -172,7 +176,7 @@ struct QGenericArrayOps } } - void copyAppend(size_t n, const T &t) + void copyAppend(size_t n, parameter_type t) { Q_ASSERT(this->isMutable()); Q_ASSERT(!this->isShared());