Browse Source

Fix some minor warnings on OS X 32-bit

tags/2021-05-28
hogliux 9 years ago
parent
commit
c484a9ed55
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUCarbonViewControl.cpp

+ 5
- 5
modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUCarbonViewControl.cpp View File

@@ -82,19 +82,19 @@ void AUCarbonViewControl::Bind()
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events); WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
if (mType == kTypeContinuous || mType == kTypeText || mType == kTypeDiscrete) { if (mType == kTypeContinuous || mType == kTypeText || mType == kTypeDiscrete) {
EventTypeSpec events[] = {
EventTypeSpec controlEvents[] = {
{ kEventClassControl, kEventControlHit }, { kEventClassControl, kEventControlHit },
{ kEventClassControl, kEventControlClick }, { kEventClassControl, kEventControlClick },
{ kEventClassControl, kEventControlTrack } { kEventClassControl, kEventControlTrack }
}; };
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(controlEvents), controlEvents);
} }
if (mType == kTypeText) { if (mType == kTypeText) {
EventTypeSpec events[] = {
EventTypeSpec controlFocusEvents[] = {
{ kEventClassControl, kEventControlSetFocusPart } { kEventClassControl, kEventControlSetFocusPart }
}; };
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(events), events);
WantEventTypes(GetControlEventTarget(mControl), GetEventTypeCount(controlFocusEvents), controlFocusEvents);
ControlKeyFilterUPP proc = mParam.ValuesHaveStrings() ? StdKeyFilterCallback : NumericKeyFilterCallback; ControlKeyFilterUPP proc = mParam.ValuesHaveStrings() ? StdKeyFilterCallback : NumericKeyFilterCallback;
// this will fail for a static text field // this will fail for a static text field
SetControlData(mControl, 0, kControlEditTextKeyFilterTag, sizeof(proc), &proc); SetControlData(mControl, 0, kControlEditTextKeyFilterTag, sizeof(proc), &proc);
@@ -591,7 +591,7 @@ AUVPresets::AUVPresets (AUCarbonViewBase* inParentView,
#endif #endif
#ifndef __LP64__ #ifndef __LP64__
if (result != noErr) { // if the PresentPreset property is not implemented, fall back to the CurrentPreset property if (result != noErr) { // if the PresentPreset property is not implemented, fall back to the CurrentPreset property
OSStatus result = AudioUnitGetProperty (mView->GetEditAudioUnit(),
result = AudioUnitGetProperty (mView->GetEditAudioUnit(),
kAudioUnitProperty_CurrentPreset, kAudioUnitProperty_CurrentPreset,
kAudioUnitScope_Global, kAudioUnitScope_Global,
0, 0,


Loading…
Cancel
Save