mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 06:41:35 +08:00
Fixed padding in DataTypeDescriptor class
This commit is contained in:
@@ -131,24 +131,24 @@ public:
|
|||||||
*/
|
*/
|
||||||
class UAVCAN_EXPORT DataTypeDescriptor
|
class UAVCAN_EXPORT DataTypeDescriptor
|
||||||
{
|
{
|
||||||
DataTypeKind kind_;
|
|
||||||
DataTypeID id_;
|
|
||||||
DataTypeSignature signature_;
|
DataTypeSignature signature_;
|
||||||
const char* full_name_;
|
const char* full_name_;
|
||||||
|
DataTypeKind kind_;
|
||||||
|
DataTypeID id_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const unsigned MaxFullNameLen = 80;
|
static const unsigned MaxFullNameLen = 80;
|
||||||
|
|
||||||
DataTypeDescriptor()
|
DataTypeDescriptor() :
|
||||||
: kind_(DataTypeKind(0))
|
full_name_(""),
|
||||||
, full_name_("")
|
kind_(DataTypeKind(0))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
DataTypeDescriptor(DataTypeKind kind, DataTypeID id, const DataTypeSignature& signature, const char* name)
|
DataTypeDescriptor(DataTypeKind kind, DataTypeID id, const DataTypeSignature& signature, const char* name) :
|
||||||
: kind_(kind)
|
signature_(signature),
|
||||||
, id_(id)
|
full_name_(name),
|
||||||
, signature_(signature)
|
kind_(kind),
|
||||||
, full_name_(name)
|
id_(id)
|
||||||
{
|
{
|
||||||
UAVCAN_ASSERT(kind < NumDataTypeKinds);
|
UAVCAN_ASSERT(kind < NumDataTypeKinds);
|
||||||
UAVCAN_ASSERT(name);
|
UAVCAN_ASSERT(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user