From 7edf2d81bef4ed9d28a67c9b4b6867c5eb18b031 Mon Sep 17 00:00:00 2001 From: GlaryCastle Date: Tue, 12 Jul 2022 16:53:27 +0800 Subject: [PATCH] Signed-off-by: GlaryCastle Changes to be committed: modified: services/src/input_method_system_ability.cpp --- services/src/input_method_system_ability.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index 67778c0..4aba177 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -175,18 +175,18 @@ namespace MiscServices { dprintf(fd, "\n - InputMethodSystemAbility::DumpAllMethod get Active Id failed.\n"); return; } - dprintf(fd, "\n - DumpAllMethod get Active Id succeed,count=%d,", ids.size()); - for (auto it : ids) { + dprintf(fd, "\n - DumpAllMethod get Active Id succeed,count=%zu,", ids.size()); + for (auto id : ids) { std::vector properties; - listInputMethodByUserId(it, &properties); + listInputMethodByUserId(id, &properties); if (properties.empty()) { IMSA_HILOGI("The IME properties is empty."); - dprintf(fd, "\n - The IME properties is empty.\n"); + dprintf(fd, "\n - The IME properties about the Active Id %d is empty.\n",id); continue; } std::string params; GetInputMethodParam(properties, params); - dprintf(fd, "\n - The Active Id:%d get input method:\n%s\n", it, params.c_str()); + dprintf(fd, "\n - The Active Id:%d get input method:\n%s\n", id, params.c_str()); } IMSA_HILOGI("InputMethodSystemAbility::DumpAllMethod end."); }