for (i = 0; i < list_len; i++)
list_items->append(prop_pairs[i]);
- if (NULL != prop_pairs)
- XtFree((char*) prop_pairs);
+ XtFree((char*) prop_pairs);
}
for (i = 0; i < list_len; i++)
delete char_list;
- if(list_str != NULL)
- free((void *)list_str);
+ free((void *)list_str);
if(buf != NULL)
free((void *)buf);
//
// This assumes that a non-null value means that the
// value is set and that a non-null means turn on the CB
- if (strcmp(value, "f") == 0)
+ if (value && strcmp(value, "f") == 0)
options_checkbox_set_value(w, TRUE, this->dirty_bit);
else if (value == NULL || strcmp(value, "") == 0)
options_checkbox_set_value(w, FALSE, this->dirty_bit);
- if (value != NULL)
- free((void*) value);
+ free(value);
}
else if (NULL == value || strcmp(value, "f") == 0)
options_checkbox_set_value(w, FALSE, this->dirty_bit);
- if (value != NULL)
- free((void*) value);
+ free((void*) value);
}
options_spinbox_set_value(w, atoi(value), this->dirty_bit);
_valueChanged = FALSE;
- if (NULL != value) free((void*) value);
+ free((void*) value);
}
strcpy(v3_cs, "DEFAULT");
strcat(v3_cs, ".");
strcat(v3_cs, ret);
- if (ret)
- free(ret);
+ free(ret);
}
// Get iconv from and to codeset and do conversion.
_print_output->appendNewLine();
XtFree(buffer);
- if (NULL != separator_string)
- free((void*) separator_string);
+ free((void*) separator_string);
break;
}
mailrc->getValue(error, "toolcols", &value);
if (!error.isSet()){
cols = (int) strtol(value, NULL, 10);
- if (NULL != value)
- free((void*) value);
+ free((void*) value);
} else {
/*
* MB_CUR_MAX == 1 : SingleByteLanguage
_loading = DTM_TRUE;
options_field_set_value(w, value, this->dirty_bit);
- if (NULL != value) free((void*) value);
+ free((void*) value);
_loading = DTM_FALSE;
}
do_break = True;
}
- if (fl_entry_font_tag != NULL)
- XtFree((char*) fl_entry_font_tag);
+ XtFree((char*) fl_entry_font_tag);
if (do_break)
break;
else
prop_source->setValue(value);
- if (NULL != mailspool_file) free((void*) mailspool_file);
+ free((void*) mailspool_file);
}
// Takes values in the UI and puts them into the source DB
else
options_field_set_value(w, value, this->dirty_bit);
- if (NULL != value) free((void*) value);
+ free((void*) value);
if (NULL != mailspool_file) free((void*) mailspool_file);
}
errmsg = NULL;
if (inbox_path) free(inbox_path);
- if (expanded_path) free(expanded_path);
+ free(expanded_path);
return (char*) errmsg;
}
delete char_list;
- if(list_str != NULL)
- free((void*) list_str);
+ free((void*) list_str);
if(buf != NULL)
free((void *)buf);
&file);
}
- if (str) free(str);
+ free(str);
if (NULL == file)
{
else
_inbox = FALSE;
- if (NULL != mail_file)
- free((void*)mail_file);
+ free((void*)mail_file);
_list = NULL;
_genDialog = NULL;
else
_last_sorted_by = (SortBy) atoi(value);
- if (NULL != value) free((void*) value);
+ free((void*) value);
if (NULL != buffer) XtFree(buffer);
}
int header_lines = (int) strtol(value, NULL, 10);
_list->visibleItems(header_lines);
- if (NULL != value) free((void*) value);
+ free((void*) value);
XtAddCallback(
_list->get_scrolling_list(), XmNhelpCallback,
if (header_lines != _list->visibleItems())
_list->visibleItems(header_lines);
- if (NULL != value)
- free((void*) value);
+ free((void*) value);
_list->checkDisplayProp();
_my_editor->textEditor()->update_display_from_props();
{
RoamMenuWindow *obj = (RoamMenuWindow*) client_data;
obj->create_new_container(selection);
- if (NULL != selection) XtFree(selection);
+ XtFree(selection);
}
void
&mail_file);
is_inbox = (0 == strcmp(mail_file, filename));
- if (NULL != mail_file)
- free((void*) mail_file);
+ free((void*) mail_file);
if (is_inbox)
return;
options_scale_set_value(w, value, this->dirty_bit);
- if (NULL != value)
- free((void*) value);
+ free((void*) value);
}
else {
env->removeHeader(error, hl->header);
}
- if (value) {
- XtFree(value);
- }
+ XtFree(value);
}
}
{
SendMsgDialog *obj = (SendMsgDialog *)client_data;
obj->include_file(selection);
- if (NULL != selection)
- XtFree(selection);
-
+ XtFree(selection);
}
void
options_spinbox_set_value(w, atoi(value), this->dirty_bit);
- if (NULL != value)
- free((void*) value);
+ free((void*) value);
}
LOG_FPRINTF(log, (log,"Opened session file: %s\n",pathname));
LOG_CLOSEFILEPTR(log);
- if (pathname != NULL)
- XtFree((char *)pathname);
+ XtFree((char *)pathname);
}
/*
cbs->doit = FALSE;
XBell(dpy, 50);
}
- if (NULL != text) XtFree(text);
- if (NULL != textvalue) XtFree(textvalue);
+ XtFree(text);
+ XtFree(textvalue);
}
void
strcpy(v3_cs, "DEFAULT");
strcat(v3_cs, ".");
strcat(v3_cs, ret);
- if (ret)
- free(ret);
+ free(ret);
}
// Get iconv from and to codeset and do conversion.
NULL,
&ret_codeset);
- if (ret_locale)
- free(ret_locale);
+ free(ret_locale);
if (ret_lang)
free(ret_lang);
if (ret_target)
error.clear();
if (type)
DtDtsFreeDataType(type);
- if (mime_type)
- free(mime_type);
+ free(mime_type);
if (name)
free(name);
}
}
}
}
- if ( cs )
free ( cs );
if ( from_cs )
free( from_cs );
appendCB, (void*) this);
if (NULL != _mra_server) _mra_server->set_password(_mra_serverpw);
- if (NULL != protocol) free(protocol);
+ free(protocol);
}
else if (True == DtMailServer::get_mailrc_value(
_session, DTMAS_INBOX,
free( from_cs );
if (NULL != to_cs)
free ( to_cs );
- if (NULL != cs_name)
- free(cs_name);
+ free(cs_name);
return(enc_end);
}
delete [] cbuf;
delete rd;
}
- if (bp_contents) {
- free(bp_contents);
- bp_contents = NULL;
- }
- if (name) {
- free(name);
- name = NULL;
- }
+
+ free(bp_contents);
+ bp_contents = NULL;
+
+ free(name);
+ name = NULL;
}
}
strcpy(cs, "DEFAULT");
strcat(cs, ".");
strcat(cs, ret);
- if ( ret )
- free( ret );
+ free( ret );
}
} // If cstmp is NULL