From: Sage Weil Date: Thu, 24 May 2018 19:03:49 +0000 (-0500) Subject: CodingStyle: update my_type_t sample X-Git-Tag: v14.0.0~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22163%2Fhead;p=ceph.git CodingStyle: update my_type_t sample Signed-off-by: Sage Weil --- diff --git a/CodingStyle b/CodingStyle index 7e9621e27e8d..1dc97eb1ffaf 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,