static_cast is a much better thing to use than C-style casts.
Other casts have not been changed because I'm planning a PR that changes all instances of NULL and 0 (when used as a pointer) to nullptr; most C-style casts are for null pointers in this code base anyway.
static_cast
is a much better thing to use than C-style casts.Other casts have not been changed because I'm planning a PR that changes all instances of
NULL
and0
(when used as a pointer) tonullptr
; most C-style casts are for null pointers in this code base anyway.