paint_volume: assert non-NULL pv in _volume_copy
Instead of carefully checking if the user passes NULL to clutter_paint_volume_copy we now simply use g_return_val_if_fail.
This commit is contained in:
parent
3040b140bc
commit
fd41024d29
@ -139,9 +139,7 @@ clutter_paint_volume_copy (const ClutterPaintVolume *pv)
|
||||
{
|
||||
ClutterPaintVolume *copy;
|
||||
|
||||
/* XXX: can we just g_return_val_if_fail instead‽ */
|
||||
if (G_UNLIKELY (pv == NULL))
|
||||
return NULL;
|
||||
g_return_val_if_fail (pv != NULL, NULL);
|
||||
|
||||
copy = g_slice_dup (ClutterPaintVolume, pv);
|
||||
if (copy->actor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user