Fix analyser issues

This commit is contained in:
vit9696 2018-11-14 19:17:06 +03:00
parent 7ab6dd4285
commit e1c0b08fc0
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ USTATUS NvramParser::parseNvarStore(const UModelIndex & index)
goto parsing_done; goto parsing_done;
} }
timestamp = readUnaligned((UINT64*)(tail.constData()) + sizeof(UINT8)); timestamp = readUnaligned((UINT64*)(tail.constData() + sizeof(UINT8)));
hash = tail.mid(sizeof(UINT64) + sizeof(UINT8), SHA256_HASH_SIZE); hash = tail.mid(sizeof(UINT64) + sizeof(UINT8), SHA256_HASH_SIZE);
hasTimestamp = true; hasTimestamp = true;
hasHash = true; hasHash = true;

View File

@ -117,7 +117,7 @@ public:
UString data(const UModelIndex &index, int role) const; UString data(const UModelIndex &index, int role) const;
UString headerData(int section, int orientation, int role = 0) const; UString headerData(int section, int orientation, int role = 0) const;
TreeModel() { TreeModel() : markingEnabledFlag(false) {
rootItem = new TreeItem(0, Types::Root, 0, UString(), UString(), UString(), UByteArray(), UByteArray(), UByteArray(), TRUE, FALSE); rootItem = new TreeItem(0, Types::Root, 0, UString(), UString(), UString(), UByteArray(), UByteArray(), UByteArray(), TRUE, FALSE);
} }