GCC compatibility update

- changed paths and init sequences
This commit is contained in:
Nikolaj Schlej 2015-04-04 15:22:52 +02:00
parent d62e9f6560
commit b429c74bcf
10 changed files with 20 additions and 20 deletions

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "ffsdumper.h" #include "ffsdumper.h"
FfsDumper::FfsDumper(TreeModel* treeModel, QObject *parent) FfsDumper::FfsDumper(TreeModel* treeModel, QObject *parent)
: model(treeModel), QObject(parent), dumped(false) : QObject(parent), model(treeModel), dumped(false)
{ {
} }
@ -88,4 +88,4 @@ STATUS FfsDumper::recursiveDump(const QModelIndex & index, const QString & path)
} }
return ERR_SUCCESS; return ERR_SUCCESS;
} }

View File

@ -21,8 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <QModelIndex> #include <QModelIndex>
#include <QFileInfo> #include <QFileInfo>
#include "..\common\basetypes.h" #include "../common/basetypes.h"
#include "..\common\treemodel.h" #include "../common/treemodel.h"
class FfsDumper : public QObject class FfsDumper : public QObject
{ {

View File

@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <iostream> #include <iostream>
#include "..\common\ffsparser.h" #include "../common/ffsparser.h"
#include "ffsdumper.h" #include "ffsdumper.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "ffsfinder.h" #include "ffsfinder.h"
FfsFinder::FfsFinder(const TreeModel* treeModel, QObject *parent) FfsFinder::FfsFinder(const TreeModel* treeModel, QObject *parent)
: model(treeModel), QObject(parent) : QObject(parent), model(treeModel)
{ {
} }

View File

@ -19,8 +19,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <QString> #include <QString>
#include <QModelIndex> #include <QModelIndex>
#include "..\common\basetypes.h" #include "../common/basetypes.h"
#include "..\common\treemodel.h" #include "../common/treemodel.h"
class FfsFinder : public QObject class FfsFinder : public QObject
{ {

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "ffsops.h" #include "ffsops.h"
FfsOperations::FfsOperations(const TreeModel* treeModel, QObject *parent) FfsOperations::FfsOperations(const TreeModel* treeModel, QObject *parent)
: model(treeModel), QObject(parent) : QObject(parent), model(treeModel)
{ {
} }

View File

@ -19,10 +19,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <QString> #include <QString>
#include <QModelIndex> #include <QModelIndex>
#include "..\common\basetypes.h" #include "../common/basetypes.h"
#include "..\common\treemodel.h" #include "../common/treemodel.h"
#include "..\common\ffs.h" #include "../common/ffs.h"
#include "..\common\utility.h" #include "../common/utility.h"
class FfsOperations : public QObject class FfsOperations : public QObject
{ {

View File

@ -33,10 +33,10 @@
#include <QTreeView> #include <QTreeView>
#include <QUrl> #include <QUrl>
#include "..\common\basetypes.h" #include "../common/basetypes.h"
#include "..\common\utility.h" #include "../common/utility.h"
#include "..\common\ffs.h" #include "../common/ffs.h"
#include "..\common\ffsparser.h" #include "../common/ffsparser.h"
#include "searchdialog.h" #include "searchdialog.h"
#include "messagelistitem.h" #include "messagelistitem.h"
#include "ffsfinder.h" #include "ffsfinder.h"

View File

@ -21,7 +21,7 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "me.h" #include "me.h"
FfsParser::FfsParser(TreeModel* treeModel, QObject *parent) FfsParser::FfsParser(TreeModel* treeModel, QObject *parent)
: model(treeModel), QObject(parent) : QObject(parent), model(treeModel)
{ {
} }
@ -1785,7 +1785,7 @@ STATUS FfsParser::parseCompressedSectionBody(const QModelIndex & index)
} }
// Check reported uncompressed size // Check reported uncompressed size
if (pdata.section.compressed.uncompressedSize != decompressed.size()) { if (pdata.section.compressed.uncompressedSize != (UINT32)decompressed.size()) {
msg(tr("parseCompressedSectionBody: decompressed size stored in header %1h (%2) differs from actual %3h (%4)") msg(tr("parseCompressedSectionBody: decompressed size stored in header %1h (%2) differs from actual %3h (%4)")
.hexarg(pdata.section.compressed.uncompressedSize) .hexarg(pdata.section.compressed.uncompressedSize)
.arg(pdata.section.compressed.uncompressedSize) .arg(pdata.section.compressed.uncompressedSize)

View File

@ -61,7 +61,7 @@ private:
TreeModel *model; TreeModel *model;
QVector<QPair<QString, QModelIndex> > messagesVector; QVector<QPair<QString, QModelIndex> > messagesVector;
STATUS parseIntelImage(const QByteArray & intelImage, const QModelIndex & parent, QModelIndex & root = QModelIndex()); STATUS parseIntelImage(const QByteArray & intelImage, const QModelIndex & parent, QModelIndex & root);
STATUS parseGbeRegion(const QByteArray & gbe, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index); STATUS parseGbeRegion(const QByteArray & gbe, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index);
STATUS parseMeRegion(const QByteArray & me, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index); STATUS parseMeRegion(const QByteArray & me, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index);
STATUS parseBiosRegion(const QByteArray & bios, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index); STATUS parseBiosRegion(const QByteArray & bios, const UINT32 parentOffset, const QModelIndex & parent, QModelIndex & index);