mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Clarify usage of pointers and references in code (#1778)
This commit is contained in:
parent
f37a64208c
commit
0291604ad0
@ -12,6 +12,7 @@ gradually.
|
||||
- No indentation for public/protected/private or for namespaces.
|
||||
- No extra spaces inside parenthesis; don't do ( this )
|
||||
- No space after function names; one space after if, for and while.
|
||||
- Align pointers and references to the left i.e. use `type& var` and not `type &var`.
|
||||
|
||||
Block style example:
|
||||
```c++
|
||||
@ -19,7 +20,7 @@ namespace foo
|
||||
{
|
||||
class Class
|
||||
{
|
||||
bool Function(char* psz, int n)
|
||||
bool Function(char* psz, int n, const string& s)
|
||||
{
|
||||
// Comment summarising what this section of code does
|
||||
for (int i = 0; i < n; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user