mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +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) :
|
CEnvelope::CEnvelope(EType Type) :
|
||||||
m_PointsAccess(&m_vPoints)
|
m_PointsAccess(&m_vPoints), m_Type(Type) {}
|
||||||
{
|
|
||||||
m_Type = Type;
|
|
||||||
m_aName[0] = '\0';
|
|
||||||
m_Bottom = 0;
|
|
||||||
m_Top = 0;
|
|
||||||
m_Synchronized = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
CEnvelope::CEnvelope(int NumChannels) :
|
CEnvelope::CEnvelope(int NumChannels) :
|
||||||
m_PointsAccess(&m_vPoints)
|
m_PointsAccess(&m_vPoints)
|
||||||
|
@ -55,11 +48,6 @@ CEnvelope::CEnvelope(int NumChannels) :
|
||||||
default:
|
default:
|
||||||
dbg_assert(false, "invalid number of channels for envelope");
|
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()
|
void CEnvelope::Resort()
|
||||||
|
|
|
@ -21,9 +21,10 @@ class CEnvelope
|
||||||
public:
|
public:
|
||||||
std::vector<CEnvPoint_runtime> m_vPoints;
|
std::vector<CEnvPoint_runtime> m_vPoints;
|
||||||
CEnvelopePointAccess m_PointsAccess;
|
CEnvelopePointAccess m_PointsAccess;
|
||||||
char m_aName[32];
|
char m_aName[32] = "";
|
||||||
float m_Bottom, m_Top;
|
float m_Bottom = 0;
|
||||||
bool m_Synchronized;
|
float m_Top = 0;
|
||||||
|
bool m_Synchronized = false;
|
||||||
|
|
||||||
enum class EType
|
enum class EType
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue