mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Fixed some VS2015 compiler errors
This commit is contained in:
parent
d543df6aff
commit
4380b0e4a2
2 changed files with 15 additions and 0 deletions
|
|
@ -1324,6 +1324,14 @@ private:
|
|||
|
||||
struct Variable
|
||||
{
|
||||
// VS2015 requires a constructor to avoid aggregate initialization
|
||||
Variable (const String& n, Type t, bool isGlobalVar, bool isConstVar, const var& cv,
|
||||
int nElements = 0, Variable* pArray = nullptr, Variable* nArray = nullptr)
|
||||
: name (n), type (t), isGlobal (isGlobalVar), isConst (isConstVar), constantValue (cv),
|
||||
numElements (nElements), previousArray (pArray), nextArray (nArray)
|
||||
{
|
||||
}
|
||||
|
||||
String name;
|
||||
Type type;
|
||||
bool isGlobal, isConst;
|
||||
|
|
|
|||
|
|
@ -342,6 +342,13 @@ struct PhysicalTopologySource::Internal
|
|||
//==============================================================================
|
||||
struct DeviceInfo
|
||||
{
|
||||
// VS2015 requires a constructor to avoid aggregate initialization
|
||||
DeviceInfo (Block::UID buid, BlocksProtocol::TopologyIndex tidx, BlocksProtocol::BlockSerialNumber s,
|
||||
BlocksProtocol::VersionNumber v, BlocksProtocol::BlockName n, bool master = false)
|
||||
: uid (buid), index (tidx), serial (s), version (v), name (n), isMaster (master)
|
||||
{
|
||||
}
|
||||
|
||||
Block::UID uid {};
|
||||
BlocksProtocol::TopologyIndex index;
|
||||
BlocksProtocol::BlockSerialNumber serial;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue