diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-25 09:54:32 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-25 09:54:32 (GMT) |
commit | d7bf5675c4490ac0291cf1795b7499f2047d5c58 (patch) | |
tree | 7bcf8c7c7a9b146444c2620e9aff5e8fa0899a19 /src/util.cpp | |
parent | ea4704b4fde1c7b12520e45f5a67fdbc66d04e36 (diff) | |
download | Doxygen-d7bf5675c4490ac0291cf1795b7499f2047d5c58.zip Doxygen-d7bf5675c4490ac0291cf1795b7499f2047d5c58.tar.gz Doxygen-d7bf5675c4490ac0291cf1795b7499f2047d5c58.tar.bz2 |
Release-1.3.8
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/util.cpp b/src/util.cpp index c1cd269..193dded 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -662,7 +662,7 @@ ClassDef *newResolveTypedef(FileDef *fileScope,MemberDef *md,QCString *pTemplSpe } // remember computed value for next time - if (Doxygen::lookupCacheEnabled && result && result->getDefFileName()!="<code>") + if (result && result->getDefFileName()!="<code>") // this check is needed to prevent that temporary classes that are // introduced while parsing code fragments are being cached here. { @@ -1045,7 +1045,7 @@ ClassDef *getResolvedClassRec(Definition *scope, QCString key=scope->name()+"+"+name+"+"+explicitScopePart; LookupInfo *pval=Doxygen::lookupCache.find(key); //printf("Searching for %s result=%p\n",key.data(),pval); - if (Doxygen::lookupCacheEnabled && pval) + if (pval) { if (pTemplSpec) *pTemplSpec=pval->templSpec; if (pTypeDef) *pTypeDef=pval->typeDef; @@ -1143,14 +1143,7 @@ ClassDef *getResolvedClassRec(Definition *scope, } else { - if (Doxygen::lookupCacheEnabled) - { - Doxygen::lookupCache.insert(key,new LookupInfo(bestMatch,bestTypedef,bestTemplSpec)); - } - else // remove the 0 key from the cache - { - Doxygen::lookupCache.remove(key); - } + Doxygen::lookupCache.insert(key,new LookupInfo(bestMatch,bestTypedef,bestTemplSpec)); } //printf("] bestMatch=%s distance=%d\n", // bestMatch?bestMatch->name().data():"<none>",minDistance); |