summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/binaryformat.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2012-11-13 09:44:52 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2012-11-14 12:02:21 +0100
commit5bc18bd5b6a8a91ef168325c5a97bfdb0f96b84a (patch)
tree5b2101470529f62adc694e40a3bb3512cdda2b7a /src/libs/installer/binaryformat.h
parentcd40c7dc73112264689ecb125956abdbe2b93353 (diff)
Add empty ctor, copy ctor and remove superfluous dtor...
Remove superfluous static resource vector. Check for possible null access. Change-Id: I92f1f65a9309d8f99c479b66a03b2e3000ac121c Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/binaryformat.h')
-rw-r--r--src/libs/installer/binaryformat.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/installer/binaryformat.h b/src/libs/installer/binaryformat.h
index e2e1f6a0f..ae3b93006 100644
--- a/src/libs/installer/binaryformat.h
+++ b/src/libs/installer/binaryformat.h
@@ -193,6 +193,7 @@ struct BinaryLayout
class BinaryContentPrivate : public QSharedData
{
public:
+ BinaryContentPrivate();
BinaryContentPrivate(const QString &path);
BinaryContentPrivate(const BinaryContentPrivate &other);
~BinaryContentPrivate();
@@ -215,10 +216,9 @@ public:
class INSTALLER_EXPORT BinaryContent
{
- explicit BinaryContent(const QString &path);
-
public:
- virtual ~BinaryContent();
+ BinaryContent();
+ BinaryContent(const BinaryContent &rhs);
static BinaryContent readAndRegisterFromApplicationFile();
static BinaryContent readAndRegisterFromBinary(const QString &path);
@@ -236,6 +236,7 @@ public:
QInstallerCreator::ComponentIndex componentIndex() const;
private:
+ explicit BinaryContent(const QString &path);
static void readBinaryData(BinaryContent &content, const QSharedPointer<QFile> &file,
const BinaryLayout &layout);