diff options
author | albert-github <albert.tests@gmail.com> | 2019-03-01 12:37:48 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-03-01 12:37:48 (GMT) |
commit | 3523e1f6fdf68ea51ac2f0faf18dd93a100e32f2 (patch) | |
tree | a75c50a43309172e3d0bcf5df6f8f6ee64c6e0d0 | |
parent | ab76916ebd1c0edd7973976a14b173412e305808 (diff) | |
download | Doxygen-3523e1f6fdf68ea51ac2f0faf18dd93a100e32f2.zip Doxygen-3523e1f6fdf68ea51ac2f0faf18dd93a100e32f2.tar.gz Doxygen-3523e1f6fdf68ea51ac2f0faf18dd93a100e32f2.tar.bz2 |
Regression on Definition and derived classes that are abstract interfaces (2)
Looks like some more possible problematic places (no test case present)
-rw-r--r-- | src/definition.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 638b0bc..1233add 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -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( |