Author Topic: 'list-members/fct-arg-help' issue with protected members in a derived class  (Read 2827 times)

hs2

  • Senior Community Member
  • Posts: 2740
  • Hero Points: 288
@SlickTeam: Maybe there is a small problem with list-members/fct-arg-help.
I hope the simplifed example explains the issue clearly enough.
Code: [Select]
class CBase
{
   protected:
      virtual void doInit ( void ) = 0;
   protected:
      tType mT;
}

class CDerived : public CBase
{
   private:   // list-members/fct-arg-help shows 'mT' as poss. arg only if 'protected' is specified here !
      virtual void doInit ( void );

   private:
      CDev *pDev;
}

void CDerived::doInit ( void )
{
   // CDev::CDev ( tType aT );
   CDev *pDev = new CDev ( <list-members/fct-arg-help> );
}

list-members/fct-arg-help doesn't list 'mT' if CDerived::doInit () is private but it is listed if it's protected.
I think it should be provided as arg completion in any case.

HS2