mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-30 11:43:33 +02:00
2004-08-26 Alain Magloire
Do not call computeSources() multiple times. * model/org/eclipse/cdt/internal/core/model/CProject.java
This commit is contained in:
parent
84984bdbd1
commit
9c052a05d1
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-08-26 Alain Magloire
|
||||
|
||||
Do not call computeSources() multiple times.
|
||||
* model/org/eclipse/cdt/internal/core/model/CProject.java
|
||||
|
||||
2004-08-20 Alain Magloire
|
||||
|
||||
Fix for Bug 69071
|
||||
|
|
|
@ -461,10 +461,12 @@ public class CProject extends Openable implements ICProject {
|
|||
if (pinfo.sourceRoots != null) {
|
||||
roots = pinfo.sourceRoots;
|
||||
} else {
|
||||
roots = pinfo.sourceRoots = (ISourceRoot[])computeSourceRoots().toArray(new ISourceRoot[computeSourceRoots().size()]);
|
||||
List list = computeSourceRoots();
|
||||
roots = pinfo.sourceRoots = (ISourceRoot[])list.toArray(new ISourceRoot[list.size()]);
|
||||
}
|
||||
} else {
|
||||
roots = (ISourceRoot[])computeSourceRoots().toArray(new ISourceRoot[computeSourceRoots().size()]);
|
||||
List list= computeSourceRoots();
|
||||
roots = (ISourceRoot[])list.toArray(new ISourceRoot[list.size()]);
|
||||
}
|
||||
return roots;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue