mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
init member variables of CEnvelope on declaration
This commit is contained in:
parent
08b825439e
commit
283226ef59
|
@ -29,14 +29,7 @@ const CEnvPointBezier *CEnvelope::CEnvelopePointAccess::GetBezier(int Index) con
|
|||
}
|
||||
|
||||
CEnvelope::CEnvelope(EType Type) :
|
||||
m_PointsAccess(&m_vPoints)
|
||||
{
|
||||
m_Type = Type;
|
||||
m_aName[0] = '\0';
|
||||
m_Bottom = 0;
|
||||
m_Top = 0;
|
||||
m_Synchronized = false;
|
||||
}
|
||||
m_PointsAccess(&m_vPoints), m_Type(Type) {}
|
||||
|
||||
CEnvelope::CEnvelope(int NumChannels) :
|
||||
m_PointsAccess(&m_vPoints)
|
||||
|
@ -55,11 +48,6 @@ CEnvelope::CEnvelope(int NumChannels) :
|
|||
default:
|
||||
dbg_assert(false, "invalid number of channels for envelope");
|
||||
}
|
||||
|
||||
m_aName[0] = '\0';
|
||||
m_Bottom = 0;
|
||||
m_Top = 0;
|
||||
m_Synchronized = false;
|
||||
}
|
||||
|
||||
void CEnvelope::Resort()
|
||||
|
|
|
@ -21,9 +21,10 @@ class CEnvelope
|
|||
public:
|
||||
std::vector<CEnvPoint_runtime> m_vPoints;
|
||||
CEnvelopePointAccess m_PointsAccess;
|
||||
char m_aName[32];
|
||||
float m_Bottom, m_Top;
|
||||
bool m_Synchronized;
|
||||
char m_aName[32] = "";
|
||||
float m_Bottom = 0;
|
||||
float m_Top = 0;
|
||||
bool m_Synchronized = false;
|
||||
|
||||
enum class EType
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue