Browse Source

Fixed Xcode VST3PluginFormat compiler warnings

tags/2021-05-28
tpoole 8 years ago
parent
commit
cbc0ed304b
2 changed files with 9 additions and 10 deletions
  1. +1
    -1
      extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h
  2. +8
    -9
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 1
- 1
extras/Projucer/Source/Project Saving/jucer_ProjectExport_XCode.h 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;


+ 8
- 9
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp 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>


Loading…
Cancel
Save