Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 28.02.2012 02:51, Riccardo Magliocchetti wrote:
Hello,

Il 27/02/2012 23:22, willubuntu ha scritto:
Hello guys,


I took also the opportunity to fix some indentation to get a
consistent look
in code.

Usually is better to separate the behaviour changes from the whitespace
cleanup othwerwise it is difficult to see what you have actually changed

We have no strict rule about the whitespace at all (only about the indentation). So, everyone is free to use his style. And I prefer 'foo(bar)', someone prefer 'foo( bar )'. But nobody's style is "right", because it is not regulated.

I would not waste the time for doing

-    if (i_bDoNotUpdateUserDefined)
+    if ( i_bDoNotUpdateUserDefined )

because:
1. One day someone will change it to the first variant. (no rules!)
2. It makes 'git blame' unusable/hard-to-use.

But, of course, you are free to format your new code or the code you are actually hacking in your way. ;)

Cheers,
Ivan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.