SourceComment: Is BList::Private needed?

Dear all

What I mean is this Private is just wrapping a QList… and as Private is a struct, is there any need for this struct?

class BList : public BItem
{

. ..

protected:
    struct Private
    {
QList list;
   } p;
};

Why not simply make list a member of BList?

Same comment applies to BInt::Private, etc…

— cheers atul

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: SourceComment: Is BList::Private needed?
Hi Atul. You’re right! We don’t need the private structs here. I removed them all. As per out previous discussion the inline declarations should better be removed, right? I tried to (more...)