summaryrefslogtreecommitdiffstats
path: root/src/vhdldocgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-11-29 12:14:08 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-11-29 12:14:08 (GMT)
commita159f53f032b04064df0c9ad9d7d02f0622f0529 (patch)
tree200ceb27cfc3d6ac6230448a78a6251eddd3e78a /src/vhdldocgen.cpp
parentf0621abcd0db27a362e9c6eec5ea1a8d85e83beb (diff)
downloadDoxygen-a159f53f032b04064df0c9ad9d7d02f0622f0529.zip
Doxygen-a159f53f032b04064df0c9ad9d7d02f0622f0529.tar.gz
Doxygen-a159f53f032b04064df0c9ad9d7d02f0622f0529.tar.bz2
Refactoring: simplify vhdldocgen code a bit
Diffstat (limited to 'src/vhdldocgen.cpp')
-rw-r--r--src/vhdldocgen.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp
index 8dbd698..93afb4b 100644
--- a/src/vhdldocgen.cpp
+++ b/src/vhdldocgen.cpp
@@ -637,21 +637,12 @@ const char* VhdlDocGen::findKeyWord(const QCString& kw)
ClassDef *VhdlDocGen::getClass(const char *name)
{
if (name==0 || name[0]=='\0') return 0;
-
- ClassDef *cd=0;
- QCString temp(name);
- //temp=temp.lower();
- temp=temp.stripWhiteSpace();
- cd= Doxygen::classSDict->find(temp.data());
- return cd;
+ return Doxygen::classSDict->find(QCString(name).stripWhiteSpace());
}
ClassDef* VhdlDocGen::getPackageName(const QCString & name)
{
- ClassDef* cd=0;
- cd=getClass(name);
-
- return cd;
+ return getClass(name);
}
static QMap<QCString,MemberDef*> varMap;