Project

General

Profile

Feature #1789 ยป 0050-requirements.c-Replace-NULL-with-nullptr.patch

Marko Lindqvist, 11/30/2025 08:07 AM

View differences:

common/requirements.c
/**********************************************************************//**
Returns the first requirement in the specified requirement vector that
contradicts the specified requirement or NULL if no contradiction was
contradicts the specified requirement or nullptr if no contradiction was
detected.
@param req the requirement that may contradict the vector
@param vec the requirement vector to look in
......
const struct civ_map *nmap = &(wld.map);
enum fc_tristate eval;
fc_thread_id self = fc_thread_self();
struct thr_req_data *trdata = NULL;
struct thr_req_data *trdata = nullptr;
fc_mutex_allocate(&trmutex);
thr_req_data_list_iterate(trdatas, data) {
......
}
} thr_req_data_list_iterate_end;
if (trdata == NULL) {
if (trdata == nullptr) {
trdata = fc_malloc(sizeof(struct thr_req_data));
trdata->thr_id = self;
thr_req_data_list_append(trdatas, trdata);
    (1-1/1)