1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS 11: Fix function pointer conversions

This commit is contained in:
juce-team 2020-07-06 11:05:26 -07:00 committed by reuk
parent 2022407f97
commit f9f5caa5cc
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
9 changed files with 17 additions and 19 deletions

View file

@ -73,7 +73,7 @@ struct AudioTrackProducerClass : public ObjCClass <NSObject>
private:
static id initWithAudioSourceHolder (id self, SEL, AudioSourceHolder* source)
{
self = sendSuperclassMessage (self, @selector (init));
self = sendSuperclassMessage<id> (self, @selector (init));
object_setInstanceVariable (self, "source", source);
return self;
}
@ -86,7 +86,7 @@ private:
static void dealloc (id self, SEL)
{
delete getSource (self);
sendSuperclassMessage (self, @selector (dealloc));
sendSuperclassMessage<void> (self, @selector (dealloc));
}
static void cleanupTrackAfterBurn (id, SEL, DRTrack*) {}

View file

@ -62,7 +62,7 @@ private:
static id initWithCallbacks (id self, SEL, Callbacks* cbs)
{
self = sendSuperclassMessage (self, @selector (init));
self = sendSuperclassMessage<id> (self, @selector (init));
object_setInstanceVariable (self, "callbacks", cbs);
object_setInstanceVariable (self, "controller", [CABTLEMIDIWindowController new]);
@ -81,7 +81,7 @@ private:
{
[getController (self) release];
sendSuperclassMessage (self, @selector (dealloc));
sendSuperclassMessage<void> (self, @selector (dealloc));
}
static void show (id self, SEL, Rectangle<int>* bounds)