diff options
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 239ae3f..775b84f 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -604,6 +604,7 @@ ArgumentList *ClassDef::outerTemplateArguments() const int ti; ClassDef *pcd=0; int pi=0; + if (tempArgs) return tempArgs; // find the outer most class scope while ((ti=name().find("::",pi))!=-1 && (pcd=getClass(name().left(ti)))==0 @@ -612,10 +613,7 @@ ArgumentList *ClassDef::outerTemplateArguments() const { return pcd->templateArguments(); } - else - { - return tempArgs; - } + return 0; } |