diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-08-28 11:06:26 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-08-29 12:39:48 +0200 |
commit | 42d2b1ba06ad38fe938bc69f34f0d5714b1f201b (patch) | |
tree | f3710c4ae17aa2f721950f8064bc8fc6b39677f4 /src/libs/installer/binarycontent.cpp | |
parent | c855e20dff8feda133fa344ac9cb5542b986cf4f (diff) |
Adjust implementation to not use the collection manager.
Change-Id: Ie38460ff4a94b5583cabb1ecad97cd6c9a906c15
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/binarycontent.cpp')
-rw-r--r-- | src/libs/installer/binarycontent.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libs/installer/binarycontent.cpp b/src/libs/installer/binarycontent.cpp index 33856adfa..049409b16 100644 --- a/src/libs/installer/binarycontent.cpp +++ b/src/libs/installer/binarycontent.cpp @@ -146,7 +146,6 @@ public: QVector<QByteArray> m_resourceMappings; QVector<Range<qint64> > m_metadataResourceSegments; - ResourceCollectionManager m_collectionManager; BinaryFormatEngineHandler m_binaryFormatEngineHandler; }; @@ -156,7 +155,6 @@ BinaryContent::Private::Private() , m_dataBlockStart(Q_INT64_C(0)) , m_appBinary(0) , m_binaryDataFile(0) - , m_binaryFormatEngineHandler(m_collectionManager) {} BinaryContent::Private::Private(const QString &path) @@ -164,7 +162,6 @@ BinaryContent::Private::Private(const QString &path) , m_dataBlockStart(Q_INT64_C(0)) , m_appBinary(new QFile(path)) , m_binaryDataFile(0) - , m_binaryFormatEngineHandler(m_collectionManager) {} BinaryContent::Private::Private(const Private &other) @@ -177,7 +174,6 @@ BinaryContent::Private::Private(const Private &other) , m_performedOperationsData(other.m_performedOperationsData) , m_resourceMappings(other.m_resourceMappings) , m_metadataResourceSegments(other.m_metadataResourceSegments) - , m_collectionManager(other.m_collectionManager) , m_binaryFormatEngineHandler(other.m_binaryFormatEngineHandler) {} @@ -413,13 +409,14 @@ void BinaryContent::readBinaryData(BinaryContent &content, const QSharedPointer< "position of resource collection block.")); } - content.d->m_collectionManager.read(file, dataBlockStart); - content.d->m_binaryFormatEngineHandler.setResourceCollectionManager(content.d->m_collectionManager); + ResourceCollectionManager collectionManager; + collectionManager.read(file, dataBlockStart); + content.d->m_binaryFormatEngineHandler.registerResources(collectionManager.collections()); if (!QInstaller::isVerbose()) return; - const QList<ResourceCollection> collections = content.d->m_collectionManager.collections(); + const QList<ResourceCollection> collections = collectionManager.collections(); qDebug() << "Number of resource collections loaded:" << collections.count(); foreach (const ResourceCollection &collection, collections) { const QList<QSharedPointer<Resource> > resources = collection.resources(); |