]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CodingStyle: update my_type_t sample 22163/head
authorSage Weil <sage@redhat.com>
Thu, 24 May 2018 19:03:49 +0000 (14:03 -0500)
committerSage Weil <sage@redhat.com>
Thu, 24 May 2018 19:03:49 +0000 (14:03 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
CodingStyle

index 7e9621e27e8d28a926e8afb55bd77a0a3ea449b2..1dc97eb1ffaf76ee9559dfc651e5208c5c495d11 100644 (file)
@@ -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,