Skip to content

Commit

Permalink
messages: return fields by const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Aug 19, 2024
1 parent 7093094 commit 06de164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ulog_cpp/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class MessageFormat {
/**
* @return the list of fields, in-order
*/
std::vector<std::shared_ptr<Field>> fields() const { return _fields_ordered; }
const std::vector<std::shared_ptr<Field>>& fields() const { return _fields_ordered; }

/**
* @return the list of field names, in-order
Expand Down

0 comments on commit 06de164

Please sign in to comment.