summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 56bf75c..e92a695 100644
--- a/src/code.l
+++ b/src/code.l
@@ -268,7 +268,7 @@ void VariableContext::addVariable(const QCString &type,const QCString &name)
QCString typeName(ltype.left(i));
ClassDef* newDef = 0;
QCString templateArgs(ltype.right(ltype.length() - i));
- if (
+ if ( !typeName.isEmpty() &&
( // look for class definitions inside the code block
(varType=g_codeClassSDict->find(typeName)) ||
// otherwise look for global class definitions