From ab76916ebd1c0edd7973976a14b173412e305808 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 1 Mar 2019 13:15:40 +0100 Subject: 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) --- src/definition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (this); ol.startCodeFragment(); pIntf->parseCode(ol, // codeOutIntf -- cgit v0.12