[MPlayer-cvslog] r33357 - trunk/gui/app.c

Clément Bœsch ubitux at gmail.com
Tue May 3 19:13:25 CEST 2011


On Tue, May 03, 2011 at 05:55:21PM +0200, ib wrote:
> Author: ib
> Date: Tue May  3 17:55:20 2011
> New Revision: 33357
> 
> Log:
> Use designators for structure initialization.
> 
> Modified:
>    trunk/gui/app.c
> 
> Modified: trunk/gui/app.c
> ==============================================================================
> --- trunk/gui/app.c	Tue May  3 16:34:40 2011	(r33356)
> +++ trunk/gui/app.c	Tue May  3 17:55:20 2011	(r33357)
> @@ -24,13 +24,9 @@
>  #include "libavutil/common.h"
>  
>  guiItems appMPlayer = {
> -    { 0 }, { 0 }, 0,
> -    { 0 }, { 0 },
> -    { 0 }, { 0 }, 0,
> -    { 0 }, { 0 }, { 0 }, 0,
> -    -1,    { 0 },
> -    -1,    { 0 },
> -    -1,    { 0 }
> +    .IndexOfMainItems = -1,
> +    .IndexOfBarItems  = -1,
> +    .IndexOfMenuItems = -1
>  };
>  

Not that important, but you should put a comma at the end of the last item
too. By doing that, if you add an option, you won't have a diff line on
the last item (and you'll see only the functionnal change).

-- 
Clément B.


More information about the MPlayer-cvslog mailing list