diff options
author | kh1 <qt-info@nokia.com> | 2011-06-24 11:40:54 +0200 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2011-06-24 11:40:54 +0200 |
commit | 334ae5da698d091a885ff9b666b81b3c24c402b8 (patch) | |
tree | fd31a2ff681074c7206a149076d77815ede04742 /installerbuilder/common/binaryformat.cpp | |
parent | e3d49c1330cfbee3e3271a9b5b83c65b7147703d (diff) |
Revert "Resolve TODO. Remove as it's not needed at all."
This reverts commit fc936fe798cef701f1fde434eaf25b9a34ad96b1.
Diffstat (limited to 'installerbuilder/common/binaryformat.cpp')
-rw-r--r-- | installerbuilder/common/binaryformat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/installerbuilder/common/binaryformat.cpp b/installerbuilder/common/binaryformat.cpp index 72ab9db48..6c63466f5 100644 --- a/installerbuilder/common/binaryformat.cpp +++ b/installerbuilder/common/binaryformat.cpp @@ -34,6 +34,7 @@ #include "errors.h" #include "fileutils.h" +#include "kd7zenginehandler.h" #include "lib7z_facade.h" #include "utils.h" #include "zipjob.h" @@ -691,8 +692,13 @@ QSharedPointer<Archive> Component::archiveByName(const QByteArray &name) const // -- ComponentIndex +KD7zEngineHandler* ComponentIndex::zipHandler = 0; ComponentIndex::ComponentIndex() { + if (zipHandler == 0) { + // TODO: this one get leaked + zipHandler = new KD7zEngineHandler; + } } ComponentIndex ComponentIndex::read(QIODevice *dev, qint64 offset) |