diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-02-18 21:34:02 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-02-18 21:34:02 (GMT) |
commit | fa7e820834f7e7648a24accbbaa998092034c80f (patch) | |
tree | 714079396631ac6488c45cce3d6acfb51e31f9a8 /src/memberdef.cpp | |
parent | 37dc8d4605e2fa9a924a08597580d471445acc08 (diff) | |
download | Doxygen-fa7e820834f7e7648a24accbbaa998092034c80f.zip Doxygen-fa7e820834f7e7648a24accbbaa998092034c80f.tar.gz Doxygen-fa7e820834f7e7648a24accbbaa998092034c80f.tar.bz2 |
Release-1.2.14
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 303d8f3..69bcf9f 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -1114,12 +1114,6 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, } Specifier lvirt=virtualness(); - MemberDef *rmd=reimplements(); - while (rmd && lvirt==Normal) - { - lvirt = rmd->virtualness()==Normal ? Normal : Virtual; - rmd = rmd->reimplements(); - } if (protection()!=Public || lvirt!=Normal || isFriend() || isRelated() || isExplicit() || @@ -1725,3 +1719,15 @@ void MemberDef::setSectionList(Definition *d, MemberList *sl) classSectionSDict->append((int)d,sl); } +Specifier MemberDef::virtualness() const +{ + Specifier v = virt; + MemberDef *rmd = reimplements(); + while (rmd && v==Normal) + { + v = rmd->virtualness()==Normal ? Normal : Virtual; + rmd = rmd->reimplements(); + } + return v; +} + |