[vlc-devel] [PATCH] gui/qt: menus: do not use VLC_OBJECT on NULL

Jean-Baptiste Kempf jb at videolan.org
Thu Feb 23 15:00:50 CET 2017


Hello,

On Thu, 23 Feb 2017, at 14:54, Filip Roséen wrote:
> -        objects.append(VLC_OBJECT(object)); \
> +        objects.append(object ? VLC_OBJECT(object) : NULL); \

Why is that better than
if (object) objects.append ?

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list