WINGs: Minor improvments in 'closestListItem' function
commitd25631016e9c9779f5b293b0fd8239792052290a
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 10 Nov 2013 16:41:05 +0000 (10 17:41 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:04 +0000 (30 18:11 +0000)
tree6171a4ffc5de5c290fcdc87eae501eff188d4f31
parent10953b3a7ebe96ea75c9491bcc066c569dfd949d
WINGs: Minor improvments in 'closestListItem' function

The check on length of string before comparing is not necessary
because this will be checked as part of strcmp; the check won't
save time and may actually cost.

As the number of element in the array is not going to change during
the loop, took the call to 'WMGetArrayItemCount' outside the loop
to be faster (and ease compiler's optimisation work).

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/wfilepanel.c