mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-22 07:58:22 +08:00
Version 0.16.5.1
Small changes after using cppcheck
This commit is contained in:
parent
f65bebb398
commit
6c96a243d3
@ -2078,7 +2078,7 @@ void LzmaEnc_Finish(CLzmaEncHandle pp)
|
||||
if (p->mtMode)
|
||||
MatchFinderMt_ReleaseStream(&p->matchFinderMt);
|
||||
#else
|
||||
pp = pp;
|
||||
//pp = pp;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
2
ffs.cpp
2
ffs.cpp
@ -60,7 +60,7 @@ UINT32 uint24ToUint32(UINT8* ffsSize)
|
||||
ffsSize[0];
|
||||
}
|
||||
|
||||
QString guidToQString(const EFI_GUID guid)
|
||||
QString guidToQString(const EFI_GUID& guid)
|
||||
{
|
||||
QByteArray baGuid = QByteArray::fromRawData((const char*) guid.Data, sizeof(EFI_GUID));
|
||||
UINT32 i32 = *(UINT32*)baGuid.left(4).constData();
|
||||
|
2
ffs.h
2
ffs.h
@ -19,7 +19,7 @@ WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
// C++ functions
|
||||
// GUID to QString routine
|
||||
extern QString guidToQString(const EFI_GUID guid);
|
||||
extern QString guidToQString(const EFI_GUID& guid);
|
||||
// File type to QString routine
|
||||
extern QString fileTypeToQString(const UINT8 type);
|
||||
// Section type to QString routine
|
||||
|
@ -369,14 +369,13 @@ UINT8 FfsEngine::parseMeRegion(const QByteArray & me, QModelIndex & index, const
|
||||
QString info = tr("Size: %1").
|
||||
arg(me.size(), 8, 16, QChar('0'));
|
||||
|
||||
ME_VERSION* version;
|
||||
INT32 versionOffset = me.indexOf(ME_VERSION_SIGNATURE);
|
||||
if (versionOffset < 0){
|
||||
info += tr("\nVersion: unknown");
|
||||
msg(tr("parseRegion: ME region version is unknown, it can be damaged"), parent);
|
||||
}
|
||||
else {
|
||||
version = (ME_VERSION*) (me.constData() + versionOffset);
|
||||
ME_VERSION* version = (ME_VERSION*) (me.constData() + versionOffset);
|
||||
info += tr("\nVersion: %1.%2.%3.%4")
|
||||
.arg(version->major)
|
||||
.arg(version->minor)
|
||||
|
@ -531,7 +531,7 @@ void UEFITool::showMessages()
|
||||
|
||||
void UEFITool::scrollTreeView(QListWidgetItem* item)
|
||||
{
|
||||
MessageListItem* messageItem = (MessageListItem*) item;
|
||||
MessageListItem* messageItem = static_cast<MessageListItem*>(item);
|
||||
QModelIndex index = messageItem->index();
|
||||
if (index.isValid()) {
|
||||
ui->structureTreeView->scrollTo(index);
|
||||
|
Loading…
Reference in New Issue
Block a user