[MPlayer-cvslog] r33010 - trunk/gui/app.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Mar 3 21:49:58 CET 2011
On Thu, Mar 03, 2011 at 01:16:10PM +0100, ib wrote:
> Author: ib
> Date: Thu Mar 3 13:16:09 2011
> New Revision: 33010
>
> Log:
> Cosmetic: Rename constant for number of events from evBoxs to EVENTS.
>
> Modified:
> trunk/gui/app.c
>
> Modified: trunk/gui/app.c
> ==============================================================================
> --- trunk/gui/app.c Thu Mar 3 12:44:39 2011 (r33009)
> +++ trunk/gui/app.c Thu Mar 3 13:16:09 2011 (r33010)
> @@ -77,7 +77,7 @@ static const evName evNames[] = {
> { evSetAspect, "evSetAspect" }
> };
>
> -static const int evBoxs = sizeof(evNames) / sizeof(evName);
> +static const int EVENTS = sizeof(evNames) / sizeof(evName);
>
> static void appClearItem(wItem *item)
> {
> @@ -150,7 +150,7 @@ int appFindMessage(unsigned char *str)
> {
> int i;
>
> - for (i = 0; i < evBoxs; i++)
> + for (i = 0; i < EVENTS; i++)
Best get rid of the constant completely and just use
FF_ARRAY_ELEMS(evNames)
from libavutil/common.h
More information about the MPlayer-cvslog
mailing list