From 4db89a63598b4956e65a805367f8e7a06975e17d Mon Sep 17 00:00:00 2001 From: guoxiadi Date: Mon, 7 Jul 2025 16:05:24 +0800 Subject: [PATCH] change enum name Signed-off-by: guoxiadi --- frameworks/inner/ipc/common/bt_def.h | 2 +- frameworks/js/napi/src/access/napi_bluetooth_access.cpp | 2 +- interfaces/inner_api/include/bluetooth_def.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/inner/ipc/common/bt_def.h b/frameworks/inner/ipc/common/bt_def.h index 1f52ba0b..0edab9be 100644 --- a/frameworks/inner/ipc/common/bt_def.h +++ b/frameworks/inner/ipc/common/bt_def.h @@ -1814,7 +1814,7 @@ enum class HfpFeatureType { VOICE_RECOGNITION, }; -enum DialogType { +enum DialogBoxType { BLUETOOTH_SWITCH = 0, }; diff --git a/frameworks/js/napi/src/access/napi_bluetooth_access.cpp b/frameworks/js/napi/src/access/napi_bluetooth_access.cpp index 0a7368ff..b17e963f 100644 --- a/frameworks/js/napi/src/access/napi_bluetooth_access.cpp +++ b/frameworks/js/napi/src/access/napi_bluetooth_access.cpp @@ -151,7 +151,7 @@ napi_value NapiAccess::DialogTypeInit(napi_env env) HILOGD("enter"); napi_value dialogType = nullptr; napi_create_object(env, &dialogType); - SetNamedPropertyByInteger(env, dialogType, static_cast(DialogType::BLUETOOTH_SWITCH), "BLUETOOTH_SWITCH"); + SetNamedPropertyByInteger(env, dialogType, static_cast(DialogBoxType::BLUETOOTH_SWITCH), "BLUETOOTH_SWITCH"); return dialogType; } diff --git a/interfaces/inner_api/include/bluetooth_def.h b/interfaces/inner_api/include/bluetooth_def.h index c6f453b9..14513947 100644 --- a/interfaces/inner_api/include/bluetooth_def.h +++ b/interfaces/inner_api/include/bluetooth_def.h @@ -1697,7 +1697,7 @@ enum ProfileConnectionState { STATE_DISCONNECTING = 3 // the current profile is being disconnected }; -enum DialogType { +enum DialogBoxType { BLUETOOTH_SWITCH = 0, }; -- Gitee