From ffce49f96aca30935ade2daf26703714617a7f56 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 24 May 2018 14:03:49 -0500 Subject: [PATCH] CodingStyle: update my_type_t sample Signed-off-by: Sage Weil --- CodingStyle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CodingStyle b/CodingStyle index 7e9621e27e8..1dc97eb1ffa 100644 --- a/CodingStyle +++ b/CodingStyle @@ -32,8 +32,9 @@ by section. Yes, _t also means typedef. It's perhaps not ideal. struct my_type_t { - int a, b; - my_type_t() : a(0), b(0) {} + int a = 0, b = 0; + void encode(...) ... + ... }; - for full-blown classes, CamelCaps, private: section, accessors,