1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Code streamlining.

This commit is contained in:
Sergey Prigogin 2013-02-27 12:34:14 -08:00
parent ba6c3f6316
commit d806cdcf2d

View file

@ -467,8 +467,7 @@ public class PDOM extends PlatformObject implements IPDOM {
public PDOMTagIndex getTagIndex() throws CoreException { public PDOMTagIndex getTagIndex() throws CoreException {
if (tagIndex == null) { if (tagIndex == null) {
// tag index can only be stored in database versions 140.1 or greater tagIndex = new PDOMTagIndex(db, TAG_INDEX);
tagIndex = new PDOMTagIndex(db.getVersion() >= version(140, 1) ? db : null, TAG_INDEX);
} }
return tagIndex; return tagIndex;
} }
@ -483,7 +482,7 @@ public class PDOM extends PlatformObject implements IPDOM {
} }
/** /**
* Returns the index of files containg unresolved includes. * Returns the index of files containing unresolved includes.
*/ */
public BTree getIndexOfFilesWithUnresolvedIncludes() throws CoreException { public BTree getIndexOfFilesWithUnresolvedIncludes() throws CoreException {
if (indexOfFiledWithUnresolvedIncludes == null) { if (indexOfFiledWithUnresolvedIncludes == null) {