From 931b42175a841359b79e81c39a79b033c2c3bc97 Mon Sep 17 00:00:00 2001 From: zhuzhihui7 Date: Wed, 19 Mar 2025 09:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=B8=83=E5=BC=8F=E7=A1=AC=E4=BB=B6?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E5=91=8A=E8=AD=A6=E6=B6=88=E9=99=A4=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhuzhihui7 --- .../src/task/disable_task.cpp | 8 ++++---- .../src/task/enable_task.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/distributedhardwarefwkservice/src/task/disable_task.cpp b/services/distributedhardwarefwkservice/src/task/disable_task.cpp index 3c875fef..8fb417d5 100644 --- a/services/distributedhardwarefwkservice/src/task/disable_task.cpp +++ b/services/distributedhardwarefwkservice/src/task/disable_task.cpp @@ -158,8 +158,8 @@ int32_t DisableTask::DoAutoDisable() if (DHContext::GetInstance().GetRealTimeOnlineDeviceCount() == 0 && DHContext::GetInstance().GetIsomerismConnectCount() == 0) { DHDescriptor dhDescriptor { - .dhType = GetDhType(), - .id = GetDhId() + .id = GetDhId(), + .dhType = GetDhType() }; if (disableSink) { ret = ComponentManager::GetInstance().ForceDisableSink(dhDescriptor); @@ -181,8 +181,8 @@ int32_t DisableTask::DoActiveDisable() { int32_t ret = DH_FWK_SUCCESS; DHDescriptor dhDescriptor { - .dhType = GetDhType(), - .id = GetDhId() + .id = GetDhId(), + .dhType = GetDhType() }; if (GetEffectSink()) { ret = ComponentManager::GetInstance().DisableSink(dhDescriptor, GetCallingUid(), GetCallingPid()); diff --git a/services/distributedhardwarefwkservice/src/task/enable_task.cpp b/services/distributedhardwarefwkservice/src/task/enable_task.cpp index 90a61a4d..ff9cbabb 100644 --- a/services/distributedhardwarefwkservice/src/task/enable_task.cpp +++ b/services/distributedhardwarefwkservice/src/task/enable_task.cpp @@ -154,8 +154,8 @@ int32_t EnableTask::DoAutoEnable() return ERR_DH_FWK_COMPONENT_LIMIT_DEMAND_START; } DHDescriptor dhDescriptor { - .dhType = GetDhType(), - .id = GetDhId() + .id = GetDhId(), + .dhType = GetDhType() }; if (enableSink) { ret = ComponentManager::GetInstance().EnableSink(dhDescriptor, GetCallingUid(), GetCallingPid()); @@ -177,8 +177,8 @@ int32_t EnableTask::DoActiveEnable() { int32_t ret = DH_FWK_SUCCESS; DHDescriptor dhDescriptor { - .dhType = GetDhType(), - .id = GetDhId() + .id = GetDhId(), + .dhType = GetDhType() }; if (GetEffectSink()) { ret = ComponentManager::GetInstance().EnableSink(dhDescriptor, GetCallingUid(), GetCallingPid()); -- Gitee