1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

bug 319512: Compilation warnings

This commit is contained in:
Andrew Gvozdev 2010-08-22 03:06:21 +00:00
parent f5a1f8aeb8
commit f21bf3f5a8

View file

@ -71,13 +71,13 @@ public class PDOMDependencyCalculator implements IManagedDependencyCalculator {
if (files.length > 0) { if (files.length > 0) {
IIndexInclude[] includes = index.findIncludes(files[0], IIndex.DEPTH_INFINITE); IIndexInclude[] includes = index.findIncludes(files[0], IIndex.DEPTH_INFINITE);
List/*<IPath>*/ list = new ArrayList/*<IPath>*/(); List<IPath> list = new ArrayList<IPath>();
for (int i = 0; i < includes.length; ++i) { for (IIndexInclude inc : includes) {
if (includes[i].isResolved()) { if (inc.isResolved()) {
list.add(IndexLocationFactory.getAbsolutePath(includes[i].getIncludesLocation())); list.add(IndexLocationFactory.getAbsolutePath(inc.getIncludesLocation()));
} }
} }
dependencies = (IPath[])list.toArray(new IPath[list.size()]); dependencies = list.toArray(new IPath[list.size()]);
} else } else
dependencies = new IPath[0]; dependencies = new IPath[0];
} }