Skip to content

Commit

Permalink
Regression on Definition and derived classes that are abstract interf…
Browse files Browse the repository at this point in the history
…aces (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)
  • Loading branch information
albert-github committed Mar 1, 2019
1 parent 25e3022 commit ab76916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab76916

Please sign in to comment.