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

@ -21,7 +21,7 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "me.h"
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
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)")
.hexarg(pdata.section.compressed.uncompressedSize)
.arg(pdata.section.compressed.uncompressedSize)

View file

@ -61,7 +61,7 @@ private:
TreeModel *model;
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 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);