We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba5010 commit 8ffd335Copy full SHA for 8ffd335
api/CanMsg.h
@@ -51,11 +51,12 @@ class CanMsg : public Printable
51
52
CanMsg() : CanMsg(0, 0, nullptr) { }
53
54
- CanMsg(CanMsg const & other) {
55
- id = other.id;
56
- data_length = other.data_length;
57
- if (data_length > 0)
58
- memcpy(data, other.data, data_length);
+ CanMsg(CanMsg const & other)
+ {
+ id = other.id;
+ data_length = other.data_length;
+ if (data_length > 0)
59
+ memcpy(data, other.data, data_length);
60
}
61
62
virtual ~CanMsg() { }
0 commit comments