From 189aaa2698a45a851d74063f0f99d23801955c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 29 Jan 2021 22:59:23 +0100 Subject: [PATCH] Contributing: Mention this-> --- Contributing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Contributing.md b/Contributing.md index 0835d0ff..77a51c24 100644 --- a/Contributing.md +++ b/Contributing.md @@ -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 {