diff options
Diffstat (limited to 'src/qt_common/util/content.h')
| -rw-r--r-- | src/qt_common/util/content.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/qt_common/util/content.h b/src/qt_common/util/content.h index 4102737fb1..6e8642083f 100644 --- a/src/qt_common/util/content.h +++ b/src/qt_common/util/content.h @@ -25,8 +25,7 @@ enum class FirmwareInstallResult { inline const QString GetFirmwareInstallResultString(FirmwareInstallResult result) { - return QtCommon::StringLookup::Lookup(static_cast<StringLookup::StringKey>( - (int) result + (int) QtCommon::StringLookup::FwInstallSuccess)); + return LOOKUP_ENUM(result, FwInstallSuccess); } /** @@ -36,9 +35,7 @@ inline const QString GetFirmwareInstallResultString(FirmwareInstallResult result */ inline const QString GetKeyInstallResultString(FirmwareManager::KeyInstallResult result) { - // this can probably be made into a common function of sorts - return QtCommon::StringLookup::Lookup(static_cast<StringLookup::StringKey>( - (int) result + (int) QtCommon::StringLookup::KeyInstallSuccess)); + return LOOKUP_ENUM(result, KeyInstallSuccess); } void InstallFirmware(const QString &location, bool recursive); |
