diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-07-18 11:43:41 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-07-21 11:04:42 +0200 |
commit | ed53cc4b372a23f8c320850cf2796ab3ad278591 (patch) | |
tree | 1ce367f58c27797c93476dedc0acf717d815d16c /src/libs/installer/binaryformat.cpp | |
parent | cd968c4c48d61bbbada3d4bb216ff3366e481cdf (diff) |
Adjust the segment in place instead in different locations.
Change-Id: I4bfc2227161decb5ba5e96ec39d4dbd9d2699d34
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/binaryformat.cpp')
-rw-r--r-- | src/libs/installer/binaryformat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/binaryformat.cpp b/src/libs/installer/binaryformat.cpp index 538e51fe7..fca99094d 100644 --- a/src/libs/installer/binaryformat.cpp +++ b/src/libs/installer/binaryformat.cpp @@ -232,7 +232,7 @@ void Component::writeIndexEntry(QFileDevice *out, qint64 positionOffset) const void Component::writeData(QFileDevice *out, qint64 offset) const { - const qint64 dataBegin = out->pos() + offset; + const qint64 dataBegin = out->pos(); QInstaller::appendInt64(out, m_archives.count()); @@ -266,7 +266,7 @@ void Component::writeData(QFileDevice *out, qint64 offset) const archive->copyData(out); } - m_binarySegment = Range<qint64>::fromStartAndEnd(dataBegin, out->pos() + offset); + m_binarySegment = Range<qint64>::fromStartAndEnd(dataBegin, out->pos()).moved(offset); } void Component::readData(const QSharedPointer<QFile> &in, qint64 offset) |