Hi everyone,

Just a gentle reminder of the coding style we use in Calligra:

* no tabs, an indent is four spaces
* always use braces around an if block, even if it's just one line

if (bla) {
        doSomething();
}

* for and if braces on the line of the condition

if (bla) {}

* function braces on a new line

void bla()
{
}

* space after if and for

if (bla), for (bla; bla; bla)

* space before * and &, not after Type *bla, const Type &bla

Please see http://techbase.kde.org/Policies/Kdelibs_Coding_Style ...

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel

Reply via email to