From 9c1680a7eda7f465d1db0fe1298d7aabd744bd15 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Sun, 19 Feb 2012 19:02:16 +0100 Subject: [PATCH] Fix typo in QByteArray(QConstByteArrayData) constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no "str" member in QConstByteArrayData, it should be "ba". Change-Id: Ife76460e9332733480c1ceded21e78388656092d Reviewed-by: João Abecasis --- src/corelib/tools/qbytearray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 inline QByteArray(const QConstByteArrayData &dd) - : d(const_cast(&dd.str)) {} + : d(const_cast(&dd.ba)) {} template Q_DECL_CONSTEXPR inline QByteArray(QConstByteArrayDataPtr dd) : d(const_cast(&dd.ptr->ba)) {}