mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
WPrefs: replaced a few constants by the macro 'wlengthof'
This reduce the risk to miss something in case the array they refer to gets updated, because with the macro the proper number of element will be evaluated by the compiler automatically. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
6ac27ba842
commit
4bb93d3dab
@@ -804,7 +804,7 @@ static void createPanel(_Panel * p)
|
||||
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 3; i++)
|
||||
for (i = 0; i < wlengthof(panel->itemPad); i++)
|
||||
WMUnmapWidget(panel->itemPad[i]);
|
||||
}
|
||||
changedItemPad(panel->typeP, panel);
|
||||
|
||||
Reference in New Issue
Block a user