class Private or FooPrivate?

Jaroslaw Staniek staniek at kde.org
Sun Jun 23 08:20:20 BST 2013


+1

On 23/06/2013, Inge Wallin <inge at lysator.liu.se> 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.
>
> here's a short summary of the current state of things:
>
> 			Foo::Private			FooPrivate
> libs/odf		18 classes			6 classes
> libs/flake	50 classes			46 classes
> libs/main	25 classes			17 classes
>
>
> I suggest that we standardize on Foo::Private. This would mean that in the
> .h
> file we will end the class with the following code snippet:
>
> class Foo
> {
> public:
>        ...
>
> private:
>     class Private:
>     Private * const d;
> };
>
>
> Sounds good?  If there is agreement I can put this on the wiki where we keep
>
> our coding standards.
>
> 	-Inge
>
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>


-- 
regards / pozdrawiam, Jarosław Staniek



More information about the calligra-devel mailing list