[Kmymoney-devel] coding style

Ian Neal iann_bugzilla at blueyonder.co.uk
Sat Jan 23 21:03:22 CET 2010


  Cristian Oneţ wrote:
> În data de Sîmbătă 23 Ianuarie 2010 14:44:48 Alvaro Soliverez a scris:
>> Libkdchart should be kept out of this, as it is not really our code.
>> And because I have a big change coming in with the latest copy of it.
>> Changing the style of it only makes it harder for us to merge their
>> code into our branch.
>>
> It is kept out, I know that we only keep a copy of libkdchart and we should
> not change anything in it. The style script only affects the sources under
> kmymoney and libkgpgfile folders.
>
I've noticed that astyle does not seem to recognise "foreach" so is 
treating lines with foreach differently to ones with "for" or "while" in 
and removing the space between "foreach" and the "(".
See the recent change to kmymoneyutils.cpp for an example.


> -KXmlGuiWindow* KMyMoneyUtils::mainWindow() {
>
> - foreach (QWidget *widget, QApplication::topLevelWidgets()) {
>
> +KXmlGuiWindow* KMyMoneyUtils::mainWindow()
>
> +{
>
> + foreach(QWidget *widget, QApplication::topLevelWidgets()) {
>

Ian



More information about the KMyMoney-devel mailing list