class Private or FooPrivate?

Boudewijn Rempt boud at valdyas.org
Sun Jun 23 21:20:59 BST 2013


On Sunday 23 June 2013 Jun 21:30:38 Kevin Krammer wrote:
> On Sunday, 2013-06-23, Inge Wallin wrote:
> > I got a comment from Zagge in a review request lately about naming of the
> > private class.  So I did a little investigation and there is a mix of two
> > styles:  class Private (i.e. Foo::Private) and class FooPrivate.
> 
> Sometimes the latter is used because the developer in question wanted to use 
> Q_DECLARE_PRIVATE and related access macros.
> Doesn't have to be the case in the Calligra code base, just a general 
> observation :)
> 

That's probably the case here, actually.

Going forward, I rather like the suggestions in http://ivan.fomentgroup.org/blog/2013/06/22/d-ptr-the-modern-way/

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl




More information about the calligra-devel mailing list