changeset 6:41dac98beeb2

Use inclass initializers
author David Demelier <markand@malikania.fr>
date Thu, 09 Feb 2017 20:26:15 +0100
parents b8fe6bc8bb36
children 4fcd920b1a02
files STYLE_CPP.md
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/STYLE_CPP.md	Sun Feb 05 21:20:03 2017 +0100
+++ b/STYLE_CPP.md	Thu Feb 09 20:26:15 2017 +0100
@@ -301,8 +301,8 @@
 
     class point {
     public:
-        int x;
-        int y;
+        int x{0};
+        int y{0};
     };
 
 ### Return