summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-04-06 09:56:20 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-16 15:51:14 +0200
commit3111e6d6fad99c3759628eb416bbb446b4f0a605 (patch)
tree62d86f9899af2de0b2bcdf8eee9f13cc4ba7e83d /src/corelib/tools/qbytearray.cpp
parentd1f5a85e661de94d115f11536f0f28f72e99b84d (diff)
Drop unnecessary assignment
In this branch, !IS_RAW_DATA has already established that offset is sizeof(QByteArrayData) and realloc maintains the assumption. Change-Id: Ic160e36d7781d4c4f64a3b2ebec98c9cb605b3eb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.cpp')
-rw-r--r--src/corelib/tools/qbytearray.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp
index 472da9b3d1..c8f0447739 100644
--- a/src/corelib/tools/qbytearray.cpp
+++ b/src/corelib/tools/qbytearray.cpp
@@ -1459,7 +1459,6 @@ void QByteArray::reallocData(uint alloc, bool grow)
Data *x = static_cast<Data *>(::realloc(d, sizeof(Data) + alloc));
Q_CHECK_PTR(x);
x->alloc = alloc;
- x->offset = sizeof(QByteArrayData);
d = x;
}
}