summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-03-01 12:15:40 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-03-01 12:15:40 (GMT)
commitab76916ebd1c0edd7973976a14b173412e305808 (patch)
treec1436a79ebc84bbc2dcfce49758e72c05426bbcb /src/definition.cpp
parent25e30224977bd488c33c6f84d6cad1c5eca5e62a (diff)
downloadDoxygen-ab76916ebd1c0edd7973976a14b173412e305808.zip
Doxygen-ab76916ebd1c0edd7973976a14b173412e305808.tar.gz
Doxygen-ab76916ebd1c0edd7973976a14b173412e305808.tar.bz2
Regression on Definition and derived classes that are abstract interfaces (2)
There was a incorrect cast which didn't show with compilers on *nix, but does on windows. Problem occurred at least with test 58, 62 and with documentation (tclexample)
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 28dfb47..638b0bc 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