Contributing: Mention this->

This commit is contained in:
Léo Lam 2021-01-29 22:59:23 +01:00
parent 8bbacd1b1d
commit 189aaa2698
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ This will allow your contributions to be reviewed more quickly.
* Use `= default;` instead of constructors/destructors with an empty body.
* Use the `override` keyword instead of `virtual` when overriding virtual functions from a parent class.
* Mark member functions as const if they do not modify any non-static member variables.
* Do not use `this->` to refer to member variables or member functions unless it is necessary. (It is usually unnecessary.)
```cpp
class Test {