From 212802534911e7413bb32bdf0be36ca023b349f5 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Tue, 31 Jan 2023 02:44:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E8=A7=84=E8=8C=83=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- src/resource_util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resource_util.cpp b/src/resource_util.cpp index 23be92b..77f9475 100644 --- a/src/resource_util.cpp +++ b/src/resource_util.cpp @@ -294,7 +294,7 @@ string ResourceUtil::GetLocaleLimitkey(const KeyParam &KeyParam) string ResourceUtil::GetDeviceTypeLimitkey(const KeyParam &KeyParam) { auto ret = find_if(g_deviceMap.begin(), g_deviceMap.end(), [KeyParam](const auto &iter) { - return KeyParam.value == static_cast(iter.second); + return KeyParam.value == static_cast(iter.second); }); if (ret == g_deviceMap.end()) { return string(); @@ -305,7 +305,7 @@ string ResourceUtil::GetDeviceTypeLimitkey(const KeyParam &KeyParam) string ResourceUtil::GetResolutionLimitkey(const KeyParam &KeyParam) { auto ret = find_if(g_resolutionMap.begin(), g_resolutionMap.end(), [KeyParam](const auto &iter) { - return KeyParam.value == static_cast(iter.second); + return KeyParam.value == static_cast(iter.second); }); if (ret == g_resolutionMap.end()) { return string(); @@ -318,10 +318,10 @@ string ResourceUtil::GetKeyParamValue(const KeyParam &KeyParam) string val; switch (KeyParam.keyType) { case KeyType::ORIENTATION: - val = KeyParam.value == static_cast(OrientationType::VERTICAL) ? "vertical" : "horizontal"; + val = KeyParam.value == static_cast(OrientationType::VERTICAL) ? "vertical" : "horizontal"; break; case KeyType::NIGHTMODE: - val = KeyParam.value == static_cast(NightMode::DARK) ? "dark" : "light"; + val = KeyParam.value == static_cast(NightMode::DARK) ? "dark" : "light"; break; case KeyType::DEVICETYPE: val = GetDeviceTypeLimitkey(KeyParam);