From 0f975ae28607f25efcec4e2f68b8d7aef473b06c Mon Sep 17 00:00:00 2001 From: RuiChen_01 Date: Sun, 28 Jun 2026 00:48:28 +0800 Subject: [PATCH] refactor: align BatchRegisterFunctions ret type with ErrCode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CliToolMgrClient::BatchRegisterFunctions returns ErrCode (int alias). Use ErrCode instead of int32_t for the local ret variable so the type matches the API declaration exactly, in line with the rest of the CliTool client surface. Co-Authored-By: Agent Signed-off-by: RuiChen_01 🤖‍ AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] --- .../abilitymgr/src/insight_intent/function_call_convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/abilitymgr/src/insight_intent/function_call_convert.cpp b/services/abilitymgr/src/insight_intent/function_call_convert.cpp index 7442c202f7..6038644bc2 100644 --- a/services/abilitymgr/src/insight_intent/function_call_convert.cpp +++ b/services/abilitymgr/src/insight_intent/function_call_convert.cpp @@ -417,7 +417,7 @@ bool BatchRegisterInsightIntentFunctions( } } auto &client = CliToolMGRClient::GetInstance(); - int32_t ret = client.BatchRegisterFunctions(functions, successCount); + ErrCode ret = client.BatchRegisterFunctions(functions, successCount); if (ret != ERR_OK) { TAG_LOGE(AAFwkTag::CLI_TOOL, "batch register failed, ret=%{public}d, success=%{public}d", ret, successCount);