diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-02 13:17:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-02 13:17:13 (GMT) |
commit | b3ecf217127b65582a6770b30df7bbb602ed778f (patch) | |
tree | b00be65c936484f529f220773f6022064303dd64 | |
parent | cffa6a72bb260c24e9cbabbd60a595c33a42d159 (diff) | |
parent | 3523e1f6fdf68ea51ac2f0faf18dd93a100e32f2 (diff) | |
download | Doxygen-b3ecf217127b65582a6770b30df7bbb602ed778f.zip Doxygen-b3ecf217127b65582a6770b30df7bbb602ed778f.tar.gz Doxygen-b3ecf217127b65582a6770b30df7bbb602ed778f.tar.bz2 |
Merge pull request #6863 from albert-github/feature/bug_abstract_intf_regression_2
Regression on Definition and derived classes that are abstract interfaces (2)
-rw-r--r-- | src/definition.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 28dfb47..1233add 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -1279,7 +1279,7 @@ void DefinitionImpl::writeInlineCode(OutputList &ol,const char *scopeName) pIntf->resetCodeParserState(); //printf("Read:\n`%s'\n\n",codeFragment.data()); MemberDef *thisMd = 0; - if (definitionType()==TypeMember) thisMd = (MemberDef *)this; + if (definitionType()==TypeMember) thisMd = dynamic_cast <MemberDef*>(this); ol.startCodeFragment(); pIntf->parseCode(ol, // codeOutIntf @@ -1701,13 +1701,13 @@ QCString DefinitionImpl::pathFragment() const if (isLinkable()) { if (!result.isEmpty()) result+="/"; - if (definitionType()==Definition::TypeGroup && ((const GroupDef*)this)->groupTitle()) + if (definitionType()==Definition::TypeGroup && (dynamic_cast <const GroupDef*>(this))->groupTitle()) { - result+=((const GroupDef*)this)->groupTitle(); + result+=(dynamic_cast <const GroupDef*>(this))->groupTitle(); } - else if (definitionType()==Definition::TypePage && ((const PageDef*)this)->hasTitle()) + else if (definitionType()==Definition::TypePage && (dynamic_cast <const PageDef*>(this))->hasTitle()) { - result+=((const PageDef*)this)->title(); + result+=(dynamic_cast <const PageDef*>(this))->title(); } else { @@ -2031,7 +2031,7 @@ QCString DefinitionImpl::briefDescriptionAsTooltip() const static bool reentering=FALSE; if (!reentering) { - MemberDef *md = definitionType()==TypeMember ? (MemberDef*)this : 0; + const MemberDef *md = definitionType()==TypeMember ? dynamic_cast<const MemberDef*>(this) : 0; const Definition *scope = definitionType()==TypeMember ? getOuterScope() : this; reentering=TRUE; // prevent requests for tooltips while parsing a tooltip m_impl->brief->tooltip = parseCommentAsText( |