Re: [Kde-pim] Coding style: block braces in switch cases

2014-01-13 Thread Sergio Martins
On Monday, January 13, 2014 17:05:04 Kevin Krammer wrote: > > I've looked around and found quite a variation: > > e.g. qdatetime.cpp: > switch (...) { > case Foo: { > } > } > > e.g. qrasterizer.cpp: > switch (...) { > case Foo: > { > } > } > e.g. qcommandlineparser.cpp: > switch (

Re: Coding style: block braces in switch cases

2014-01-13 Thread Kevin Funk
Am Montag, 13. Januar 2014, 17:05:04 schrieb Kevin Krammer: > Hi all, > > at KDE PIM we are cleaning up our code base from over a decade of different > coding styles. Well, "we" means Guy Maurel, he does all the actual work :) > > We follow the "kdelibs" rules which in turn are close to what Qt u

Coding style: block braces in switch cases

2014-01-13 Thread Kevin Krammer
Hi all, at KDE PIM we are cleaning up our code base from over a decade of different coding styles. Well, "we" means Guy Maurel, he does all the actual work :) We follow the "kdelibs" rules which in turn are close to what Qt uses IIRC. Now we've hit a snag. There is no common rule regarding bloc