Skip to content

Commit

Permalink
CodingStyle: update my_type_t sample
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed May 24, 2018
1 parent 2c45dc6 commit ffce49f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CodingStyle
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ffce49f

Please sign in to comment.