diff options
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r-- | src/classdef.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index d8be5e5..2d4864f 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -433,11 +433,7 @@ void ClassDef::internalInsertMember(MemberDef *md, enumValMembers.append(md); break; case MemberDef::Function: - if (md->name()==localName() || // constructor - (md->name().find('~')!=-1 && // hack to detect destructor - md->name().find("operator")==-1 - ) - ) + if (md->isConstructor() || md->isDestructor()) { constructors.append(md); } |