1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Fixed Xcode VST3PluginFormat compiler warnings

This commit is contained in:
tpoole 2017-03-30 11:06:51 +01:00
parent 8140564808
commit cbc0ed304b
2 changed files with 9 additions and 10 deletions

View file

@ -28,7 +28,7 @@
namespace
{
const char* const osxVersionDefault = "default";
const int oldestSDKVersion = 6;
const int oldestSDKVersion = 5;
const int currentSDKVersion = 12;
const int minimumAUv3SDKVersion = 11;

View file

@ -685,7 +685,7 @@ public:
if (doUIDsMatch (cid, Vst::IMessage::iid) && doUIDsMatch (iid, Vst::IMessage::iid))
{
ComSmartPtr<Message> m (new Message (*this, attributeList));
ComSmartPtr<Message> m (new Message (attributeList));
messageQueue.add (m);
m->addRef();
*obj = m;
@ -782,18 +782,18 @@ private:
class Message : public Vst::IMessage
{
public:
Message (VST3HostContext& o, Vst::IAttributeList* list)
: owner (o), attributeList (list)
Message (Vst::IAttributeList* list)
: attributeList (list)
{
}
Message (VST3HostContext& o, Vst::IAttributeList* list, FIDString id)
: owner (o), attributeList (list), messageId (toString (id))
Message (Vst::IAttributeList* list, FIDString id)
: attributeList (list), messageId (toString (id))
{
}
Message (VST3HostContext& o, Vst::IAttributeList* list, FIDString id, const var& v)
: value (v), owner (o), attributeList (list), messageId (toString (id))
Message (Vst::IAttributeList* list, FIDString id, const var& v)
: value (v), attributeList (list), messageId (toString (id))
{
}
@ -809,7 +809,6 @@ private:
var value;
private:
VST3HostContext& owner;
ComSmartPtr<Vst::IAttributeList> attributeList;
String messageId;
Atomic<int> refCount;
@ -938,7 +937,7 @@ private:
}
}
owner->messageQueue.add (ComSmartPtr<Message> (new Message (*owner, this, id, value)));
owner->messageQueue.add (ComSmartPtr<Message> (new Message (this, id, value)));
}
template <typename Type>