summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-02-19 19:02:16 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-20 11:28:28 +0100
commit9c1680a7eda7f465d1db0fe1298d7aabd744bd15 (patch)
treee0014a7db1053e6a86c8c8cc239d277ca4c0d2fd /src/corelib/tools/qbytearray.h
parent3d2c8d76ecc492f37a0384b01c03065b6aae56c6 (diff)
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>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r--src/corelib/tools/qbytearray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h
index 3f12d7ddb4..8202097da5 100644
--- a/src/corelib/tools/qbytearray.h
+++ b/src/corelib/tools/qbytearray.h
@@ -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)) {}