79734175

Date: 2025-08-13 10:31:06
Score: 3
Natty:
Report link

I found that code below is working. Is it a good solution?

void __fastcall TFormMain::VSTCreateEditor(TBaseVirtualTree *Sender, PVirtualNode Node,
          TColumnIndex Column, IVTEditLink *EditLink)
{
    reinterpret_cast<System::DelphiInterface<IVTEditLink>&>(*EditLink) = *(new TPropertyEditor());

    DEBUG_FUNC("\n");

}
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Łukasz Waluś