Confirmed users
595
edits
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* | ||
Class::NewMethod(type aParam, type* _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() | ||