Feature #535 ยป 0054-specvec.h-Replace-NULLs-with-nullptrs.patch
| utility/specvec.h | ||
|---|---|---|
|
/**********************************************************************
|
||
|
/***********************************************************************
|
||
|
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
| ... | ... | |
|
static inline void SPECVEC_FOO(_vector_init) (SPECVEC_VECTOR *tthis)
|
||
|
{
|
||
|
tthis->p = NULL;
|
||
|
tthis->p = nullptr;
|
||
|
tthis->size = tthis->size_alloc = 0;
|
||
|
}
|
||
| ... | ... | |
|
} else if (svindex >= 0 && (size_t)svindex < tthis->size) {
|
||
|
return tthis->p + svindex;
|
||
|
} else {
|
||
|
return NULL;
|
||
|
return nullptr;
|
||
|
}
|
||
|
}
|
||