mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user