diff --git a/services/distributedhardwarefwkservice/src/task/disable_task.cpp b/services/distributedhardwarefwkservice/src/task/disable_task.cpp index 3c875fefd9628ec9b6d776b6746e122e913f4828..8fb417d54c8dd0e60d58df7fefc8dc7def2d77bc 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 90a61a4d5c589c5d03ae27ef0353064ccd83c2a3..ff9cbabbc11c9b4959088df22d19c5cd6c6370a4 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());