CodingStyle: update my_type_t sample

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-05-24 14:03:49 -05:00
parent 2c45dc6fe7
commit ffce49f96a
1 changed files with 3 additions and 2 deletions

View 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,