From 37697a62b8bcdece0b2332ea2cb60ee2fde8f01d Mon Sep 17 00:00:00 2001 From: li-yaoyao777 Date: Wed, 9 Mar 2022 10:00:45 +0800 Subject: [PATCH] =?UTF-8?q?const=E6=94=B9=E4=B8=BAconstexpr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-yaoyao777 --- frameworks/native/sensor/src/sensor_data_channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/sensor/src/sensor_data_channel.cpp b/frameworks/native/sensor/src/sensor_data_channel.cpp index 2ff8d8b2..01dc93fd 100755 --- a/frameworks/native/sensor/src/sensor_data_channel.cpp +++ b/frameworks/native/sensor/src/sensor_data_channel.cpp @@ -41,7 +41,7 @@ namespace { constexpr HiLogLabel LABEL = { LOG_CORE, SensorsLogDomain::SENSOR_NATIVE, "SensorDataChannel" }; // max 100 data in cache buffer constexpr int32_t SENSOR_READ_DATA_SIZE = sizeof(struct SensorEvent) * 100; -const uint32_t STOP_EVENT_ID = 0; +constexpr uint32_t STOP_EVENT_ID = 0; } // namespace SensorDataChannel::SensorDataChannel() -- Gitee