1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-01-04 04:01:52 +00:00
parent 64d21644a9
commit 71ea7fe4f8
2 changed files with 4 additions and 7 deletions

View file

@ -61,12 +61,10 @@ public class WritableCIndex extends CIndex implements IWritableIndex {
public void setFileContent(IIndexFragmentFile file, int linkageID, public void setFileContent(IIndexFragmentFile file, int linkageID,
IncludeInformation[] includes, IncludeInformation[] includes,
IASTPreprocessorStatement[] macros, IASTName[][] names, ASTFilePathResolver resolver) throws CoreException { IASTPreprocessorStatement[] macros, IASTName[][] names, ASTFilePathResolver resolver) throws CoreException {
IIndexFragment indexFragment = file.getIndexFragment(); IIndexFragment indexFragment = file.getIndexFragment();
if (!isWritableFragment(indexFragment)) { if (!isWritableFragment(indexFragment)) {
assert false : "Attempt to update file of read-only fragment"; //$NON-NLS-1$ assert false : "Attempt to update file of read-only fragment"; //$NON-NLS-1$
} } else {
else {
for (IncludeInformation ii : includes) { for (IncludeInformation ii : includes) {
if (ii.fLocation != null) { if (ii.fLocation != null) {
ii.fTargetFile= addFile(linkageID, ii.fLocation); ii.fTargetFile= addFile(linkageID, ii.fLocation);
@ -89,8 +87,7 @@ public class WritableCIndex extends CIndex implements IWritableIndex {
IIndexFragment indexFragment = file.getIndexFragment(); IIndexFragment indexFragment = file.getIndexFragment();
if (!isWritableFragment(indexFragment)) { if (!isWritableFragment(indexFragment)) {
assert false : "Attempt to clear file of read-only fragment"; //$NON-NLS-1$ assert false : "Attempt to clear file of read-only fragment"; //$NON-NLS-1$
} } else {
else {
((IWritableIndexFragment) indexFragment).clearFile(file, clearedContexts); ((IWritableIndexFragment) indexFragment).clearFile(file, clearedContexts);
} }
} }