mirror of https://github.com/ceph/ceph
CodingStyle: update my_type_t sample
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
2c45dc6fe7
commit
ffce49f96a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue