summaryrefslogtreecommitdiffstats
path: root/src/doxygen.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-20 13:28:23 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-20 19:06:51 (GMT)
commitbb783fb795f9c0d077fa201ed673be93825486ce (patch)
tree5d22aac5013ef67379933a9d8ae3c87a3d4b861f /src/doxygen.h
parent1206a9b9b49cdd904c1b5f003c874acd94472806 (diff)
downloadDoxygen-bb783fb795f9c0d077fa201ed673be93825486ce.zip
Doxygen-bb783fb795f9c0d077fa201ed673be93825486ce.tar.gz
Doxygen-bb783fb795f9c0d077fa201ed673be93825486ce.tar.bz2
Refactoring: replaced QCache by STL based LRU cache implementation.
Also prepared some code for multi-threaded use, and Removed tabs and trailing spaces for code.l
Diffstat (limited to 'src/doxygen.h')
-rw-r--r--src/doxygen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doxygen.h b/src/doxygen.h
index dc05750..f2b7dda 100644
--- a/src/doxygen.h
+++ b/src/doxygen.h
@@ -17,7 +17,6 @@
#define DOXYGEN_H
#include <qdatetime.h>
-#include <qcache.h>
#include <qstrlist.h>
#include <qdict.h>
#include <qintdict.h>
@@ -29,6 +28,7 @@
#include "dirdef.h"
#include "memberlist.h"
#include "define.h"
+#include "cache.h"
#define THREAD_LOCAL thread_local
#define AtomicInt std::atomic_int
@@ -78,11 +78,11 @@ class StringDict : public QDict<QCString>
struct LookupInfo
{
- LookupInfo() : classDef(0), typeDef(0) {}
+ LookupInfo() = default;
LookupInfo(const ClassDef *cd,const MemberDef *td,QCString ts,QCString rt)
: classDef(cd), typeDef(td), templSpec(ts),resolvedType(rt) {}
- const ClassDef *classDef;
- const MemberDef *typeDef;
+ const ClassDef *classDef = 0;
+ const MemberDef *typeDef = 0;
QCString templSpec;
QCString resolvedType;
};
@@ -127,7 +127,7 @@ class Doxygen
static QDict<Definition> *clangUsrMap;
static bool outputToWizard;
static QDict<int> *htmlDirMap;
- static QCache<LookupInfo> *lookupCache;
+ static Cache<std::string,LookupInfo> *lookupCache;
static DirSDict *directories;
static SDict<DirRelation> dirRelations;
static ParserManager *parserManager;