Use nullptr instead of casting 0 to pointer.