summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-25 09:54:32 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-25 09:54:32 (GMT)
commite305d80490e1fb2dc15eb9cf9ee13428936c8e16 (patch)
tree7bcf8c7c7a9b146444c2620e9aff5e8fa0899a19 /src/util.cpp
parent46361b7017fbbbc5f560eea54aac2be86abaf90e (diff)
downloadDoxygen-e305d80490e1fb2dc15eb9cf9ee13428936c8e16.zip
Doxygen-e305d80490e1fb2dc15eb9cf9ee13428936c8e16.tar.gz
Doxygen-e305d80490e1fb2dc15eb9cf9ee13428936c8e16.tar.bz2
Release-1.3.8
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp13
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);