1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Minor optimization.

This commit is contained in:
Sergey Prigogin 2012-04-19 19:38:54 -07:00
parent c1066f1e4a
commit 325175292a

View file

@ -2352,9 +2352,9 @@ public class CPPSemantics {
} }
public static IBinding resolveFunction(LookupData data, ICPPFunction[] fns, boolean allowUDC) throws DOMException { public static IBinding resolveFunction(LookupData data, ICPPFunction[] fns, boolean allowUDC) throws DOMException {
fns= ArrayUtil.trim(ICPPFunction.class, fns); if (fns == null || fns.length == 0 || fns[0] == null)
if (fns == null || fns.length == 0)
return null; return null;
fns= ArrayUtil.trim(fns);
sortAstBeforeIndex(fns); sortAstBeforeIndex(fns);