Skip to content

Commit

Permalink
messages: init TypeAttributes members
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Dec 21, 2023
1 parent 9397c71 commit 29c9b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ulog_cpp/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ class Field {
* the attributes are dynamically computed in nested type resolution.
*/
struct TypeAttributes {
std::string name; ///< name of the type
BasicType type; ///< type as an enum
int size; ///< size in bytes. Recursively computed for nested types
std::string name; ///< name of the type
BasicType type{BasicType::NESTED}; ///< type as an enum
int size{0}; ///< size in bytes. Recursively computed for nested types
std::shared_ptr<MessageFormat> nested_message{nullptr}; /// < nested message format

TypeAttributes() = default;
Expand Down

0 comments on commit 29c9b7b

Please sign in to comment.