auto diff = current_time_point - g_last_key_pressed;
long long int milliseconds = chrono::duration_cast<chrono::milliseconds>(diff).count();
LOGD("milliseconds : %lld", milliseconds);
- mas_plugin_event_e event;
+ mas_plugin_event_e plugin_event;
if (milliseconds < g_voice_key_tap_duration) {
- event = MAS_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_TAP;
+ plugin_event = MAS_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_TAP;
} else {
- event = MAS_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_PUSH;
+ plugin_event = MAS_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_PUSH;
}
if (g_proxy_interface.process_event) {
- g_proxy_interface.process_event(event, NULL, 0);
+ g_proxy_interface.process_event(plugin_event, NULL, 0);
}
}
}
closure.user_data = user_data;
preference_foreach_item(
- [](const char *key, void *user_data) {
+ [](const char *key, void *data) {
string prefix = string{LANGUAGE_PREFIX};
foreach_assistant_language_cb_closure* closure =
- static_cast<foreach_assistant_language_cb_closure*>(user_data);
+ static_cast<foreach_assistant_language_cb_closure*>(data);
if (key && strlen(key) > prefix.length() &&
0 == prefix.compare(0, prefix.length(), key, prefix.length())) {
char* value = nullptr;
}
if (current_maclient_appid) {
- int pid = mClientManager.find_client_pid_by_appid(
+ int pid_by_appid = mClientManager.find_client_pid_by_appid(
std::string{current_maclient_appid});
- mServiceIpc.send_preprocessing_result(pid, result);
+ mServiceIpc.send_preprocessing_result(pid_by_appid, result);
}
return 0;