refactor: align BatchRegisterFunctions ret type with ErrCode

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 <chenrui193@huawei.com>

🤖‍ AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%]
This commit is contained in:
RuiChen_01
2026-06-28 00:48:28 +08:00
parent db029dbbe0
commit 0f975ae286
@@ -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);