From 087e5b96905feece22a3f93f33d13a24c723f528 Mon Sep 17 00:00:00 2001 From: stesen Date: Thu, 6 Jan 2022 20:48:52 +0800 Subject: [PATCH] fix asan build fail Signed-off-by: stesen Change-Id: I8102b86204130fe2be7b6b3153f04a1295512ad7 --- services/native/include/power_mode_policy.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/native/include/power_mode_policy.h b/services/native/include/power_mode_policy.h index 953d65a6..ee7c4a25 100644 --- a/services/native/include/power_mode_policy.h +++ b/services/native/include/power_mode_policy.h @@ -30,12 +30,12 @@ class PowerModePolicy { public: class ServiceType { public: - static const uint32_t DISPLAY_OFFTIME = 101; - static const uint32_t SLEEPTIME = 102; - static const uint32_t AUTO_ADJUST_BRIGHTNESS = 103; - static const uint32_t AUTO_WINDOWN_RORATION = 107; - static const uint32_t SMART_BACKLIGHT = 115; - static const uint32_t VIBRATORS_STATE = 120; + static constexpr uint32_t DISPLAY_OFFTIME = 101; + static constexpr uint32_t SLEEPTIME = 102; + static constexpr uint32_t AUTO_ADJUST_BRIGHTNESS = 103; + static constexpr uint32_t AUTO_WINDOWN_RORATION = 107; + static constexpr uint32_t SMART_BACKLIGHT = 115; + static constexpr uint32_t VIBRATORS_STATE = 120; }; ~PowerModePolicy() = default; -- Gitee