static bool is_space_str(const char *str)
{
while (str) {
- if (*str != '\0' && *str != ' ') {
+ if (*str != '\0' && *str != ' ')
return FALSE;
- } else if (*str == '\0') {
+ else if (*str == '\0')
return TRUE;
- }
+
str++;
}
return TRUE;
WFD_RET_IF(ugd == NULL || obj == NULL, "Incorrect parameter(NULL)\n");
WFD_RET_IF(ugd->rename_button == NULL, "ugd->rename_button(NULL)\n");
- const char *entry_text = NULL;
- char *input_str = NULL;
+ const char *entry_text = NULL;
+ char *input_str = NULL;
bool is_space_string = FALSE;
entry_text = elm_entry_entry_get(obj);
int j = 0;
bool is_unavailable_char_found = true;
- if ((device_name == NULL) || (strlen(device_name) == 0)) {
+ if ((device_name == NULL) || (strlen(device_name) == 0))
return -1;
- }
for (i = 0; i < strlen(device_name); i++) {
if ((device_name[i] >= '0' && device_name[i] <= '9') ||
DBG(LOG_INFO, "New device name:[%s]\n", device_name_str);
_check_device_name(device_name_str);
- if (0 != vconf_set_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR, device_name_str)) {
- DBG(LOG_ERROR, "Set vconf[%s] failed\n",VCONFKEY_SETAPPL_DEVICE_NAME_STR);
- }
+ if (0 != vconf_set_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR, device_name_str))
+ DBG(LOG_ERROR, "Set vconf[%s] failed\n", VCONFKEY_SETAPPL_DEVICE_NAME_STR);
+
#ifdef WFD_ON_OFF_GENLIST
wfd_ug_view_refresh_glitem(ugd->item_wifi_onoff);
#endif
int ret = notification_status_message_post(
D_("IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED"));
- if (ret != NOTIFICATION_ERROR_NONE) {
+ if (ret != NOTIFICATION_ERROR_NONE)
DBG(LOG_ERROR, "notification_status_message_post() ERROR [%d]", ret);
- }
__FUNC_EXIT__;
}
Ecore_IMF_Context *imf_context;
imf_context = (Ecore_IMF_Context*)elm_entry_imf_context_get(entry);
- if (imf_context) {
+ if (imf_context)
ecore_imf_context_input_panel_hide(imf_context);
- }
elm_object_focus_set(entry, EINA_FALSE);
}
{
__FUNC_ENTER__;
- DBG(LOG_INFO,"Part = %s", part);
- if (obj == NULL || part == NULL) {
+ DBG(LOG_INFO, "Part = %s", part);
+ if (obj == NULL || part == NULL)
return NULL;
- }
if (!strcmp("elm.text.multiline", part)) {
char buf[WFD_GLOBALIZATION_STR_LENGTH] = {0, };
/* Entry genlist item */
ugd->rename_entry_itc = elm_genlist_item_class_new();
- if(ugd->rename_entry_itc != NULL) {
+ if (ugd->rename_entry_itc != NULL) {
ugd->rename_entry_itc->item_style = "entry";
ugd->rename_entry_itc->func.text_get = NULL;
ugd->rename_entry_itc->func.content_get = __wfd_main_rename_entry_icon_get;
}
ugd->rename_desc_itc = elm_genlist_item_class_new();
- if(ugd->rename_desc_itc != NULL) {
+ if (ugd->rename_desc_itc != NULL) {
ugd->rename_desc_itc->item_style = WFD_GENLIST_MULTILINE_TEXT_STYLE;
ugd->rename_desc_itc->func.text_get = __wfd_main_rename_desc_label_get;
ugd->rename_desc_itc->func.content_get = NULL;
git = elm_genlist_item_append(genlist, ugd->rename_desc_itc, NULL, NULL,
ELM_GENLIST_ITEM_NONE, NULL, NULL);
- if(git != NULL)
+ if (git != NULL)
elm_genlist_item_select_mode_set(git,
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
}