mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-13 06:34:42 -04:00
Static analysis FTW
- a bit of leftovers for previous commit found by static analyzer
This commit is contained in:
parent
cda0018a29
commit
dd0efa2410
2 changed files with 23 additions and 8 deletions
|
@ -30,6 +30,8 @@ QString regionTypeToQString(const UINT8 type)
|
|||
case Subtypes::EcRegion: return QObject::tr("EC");
|
||||
case Subtypes::Reserved4Region: return QObject::tr("Reserved4");
|
||||
};
|
||||
|
||||
return QObject::tr("Unknown");
|
||||
}
|
||||
|
||||
QString itemTypeToQString(const UINT8 type)
|
||||
|
@ -59,6 +61,8 @@ QString itemTypeToQString(const UINT8 type)
|
|||
case Types::Microcode: return QObject::tr("Microcode");
|
||||
case Types::SlicData: return QObject::tr("SLIC data");
|
||||
}
|
||||
|
||||
return QObject::tr("Unknown");
|
||||
}
|
||||
|
||||
QString itemSubtypeToQString(const UINT8 type, const UINT8 subtype)
|
||||
|
@ -128,6 +132,8 @@ QString itemSubtypeToQString(const UINT8 type, const UINT8 subtype)
|
|||
if (subtype == Subtypes::AmdMicrocode) return QObject::tr("AMD");
|
||||
break;
|
||||
}
|
||||
|
||||
return QObject::tr("Unknown");
|
||||
}
|
||||
|
||||
QString compressionTypeToQString(const UINT8 algorithm)
|
||||
|
@ -141,7 +147,7 @@ QString compressionTypeToQString(const UINT8 algorithm)
|
|||
case COMPRESSION_ALGORITHM_IMLZMA: return QObject::tr("Intel modified LZMA");
|
||||
}
|
||||
|
||||
return QObject::tr("Unknown");
|
||||
return QObject::tr("Unknown");
|
||||
}
|
||||
|
||||
QString actionTypeToQString(const UINT8 action)
|
||||
|
@ -155,4 +161,6 @@ QString actionTypeToQString(const UINT8 action)
|
|||
case Actions::Rebuild: return QObject::tr("Rebuild");
|
||||
case Actions::Rebase: return QObject::tr("Rebase");
|
||||
}
|
||||
|
||||
return QObject::tr("Unknown");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue