summaryrefslogtreecommitdiff
path: root/lyt/binaryfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lyt/binaryfile.cpp')
-rw-r--r--lyt/binaryfile.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lyt/binaryfile.cpp b/lyt/binaryfile.cpp
index 2b285c2..26ca8a0 100644
--- a/lyt/binaryfile.cpp
+++ b/lyt/binaryfile.cpp
@@ -20,13 +20,11 @@
#include <QtCore/QDataStream>
-LYTBinaryFile::LYTBinaryFile(Magic magic, Version version) {
- this->magic.value = magic.value;
- this->version.value = version.value;
+LYTBinaryFile::LYTBinaryFile(Magic m, Version v) : magic(m), version(v) {
}
-LYTBinaryFile::LYTBinaryFile(QByteArray data) {
+LYTBinaryFile::LYTBinaryFile(QByteArray data) : magic(0), version(0) {
QDataStream reader(data);
InitDataStream(reader);
@@ -49,7 +47,7 @@ LYTBinaryFile::LYTBinaryFile(QByteArray data) {
}
-QByteArray LYTBinaryFile::pack() {
+QByteArray LYTBinaryFile::pack() const {
// first off, calculate filesize for the header
quint32 fileSize = 16;