On 03/15/2013 02:51 PM, Oswald Buddenhagen wrote:
> On Fri, Mar 15, 2013 at 12:49:55PM +0100, Axel Waggershauser wrote:
>> On Fri, Mar 15, 2013 at 8:11 AM, Thiago Macieira <[email protected]> 
>> wrote:
>>>> 4) What about consistent placement of the ',' in class member
>>>> initialization lists? I've seen
>>>>
>>>>     : GvbWidget(parent),
>>>>
>>>>       m_background()
>>>>
>>>> and
>>>>
>>>>     : GvbWidget(parent)
>>>>
>>>>     , m_background()
>>>
>>> I prefer the former, though I've seen people do the latter because it allows
>>> for adding new members without touching a previous line.
>>>
> i'm undecided. i buy the "minimal diff" argument, but i also think it
> looks stupid.

Not much relevant here, but just in the unlikely event that everyone
will confess to like this style more, here's what I use in my own projects:

====
MyClass::MyClass(...):
    GvbWidget(parent),
    m_background()
{
====

Ciao,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to