mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Cosmetics.
This commit is contained in:
parent
01f10e61af
commit
0cfc0bf164
1 changed files with 7 additions and 11 deletions
|
@ -65,8 +65,7 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
|||
fPathResolver= pathResolver;
|
||||
try {
|
||||
pdomFile.addNames(names);
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
fPathResolver= origResolver;
|
||||
}
|
||||
|
||||
|
@ -139,7 +138,6 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// remove content where converter returns null
|
||||
for (PDOMFile file : notConverted) {
|
||||
file.convertIncludersToUnresolved();
|
||||
|
@ -169,11 +167,9 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
|||
}
|
||||
|
||||
public PDOMFile getFileForASTPath(int linkageID, String astPath) throws CoreException {
|
||||
if (fPathResolver != null) {
|
||||
if (astPath != null) {
|
||||
if (fPathResolver != null && astPath != null) {
|
||||
return getFile(linkageID, fPathResolver.resolveASTPath(astPath));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue