Places/Coding Style: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 46: Line 46:
When defining cpp methods opening brace and type are in new lines:<br>  
When defining cpp methods opening brace and type are in new lines:<br>  
<pre>type*
<pre>type*
newMethod(type param)
Class::NewMethod(type aParam, type*&nbsp;_outParam)
{
{
   impl;
   impl;
}
}
</pre>  
</pre>  
Notice that input params are always starting with "a" letter, while output params should be prefixed with and underscore.
Constructors params are inited like this (notice order of inited params should be the same as they are defined in the class definition, otherwise GCC will warn)<br>  
Constructors params are inited like this (notice order of inited params should be the same as they are defined in the class definition, otherwise GCC will warn)<br>  
<pre>nsNavHistory::nsNavHistory()
<pre>nsNavHistory::nsNavHistory()
Confirmed users
595

edits