Fix typo in QByteArray(QConstByteArrayData) constructor

There is no "str" member in QConstByteArrayData, it should be "ba".

Change-Id: Ife76460e9332733480c1ceded21e78388656092d
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
Kent Hansen 2012-02-19 19:02:16 +01:00 committed by Qt by Nokia
parent 3d2c8d76ec
commit 9c1680a7ed

View File

@ -378,7 +378,7 @@ public:
template <int n>
inline QByteArray(const QConstByteArrayData<n> &dd)
: d(const_cast<QByteArrayData *>(&dd.str)) {}
: d(const_cast<QByteArrayData *>(&dd.ba)) {}
template <int N>
Q_DECL_CONSTEXPR inline QByteArray(QConstByteArrayDataPtr<N> dd)
: d(const_cast<QByteArrayData *>(&dd.ptr->ba)) {}