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

macOS: Fixed another spurious dynamic_cast type_info warning when loading dylibs containing JUCE at runtime

This commit is contained in:
ed 2020-03-30 11:11:59 +01:00
parent f7f6dad663
commit 814852e966

View file

@ -56,10 +56,7 @@ namespace TabbedComponentHelpers
//==============================================================================
struct TabbedComponent::ButtonBar : public TabbedButtonBar
{
ButtonBar (TabbedComponent& tabComp, TabbedButtonBar::Orientation o)
: TabbedButtonBar (o), owner (tabComp)
{
}
ButtonBar (TabbedComponent& tabComp, TabbedButtonBar::Orientation o);
void currentTabChanged (int newCurrentTabIndex, const String& newTabName)
{
@ -86,6 +83,12 @@ struct TabbedComponent::ButtonBar : public TabbedButtonBar
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ButtonBar)
};
// The following implementation is outside of the class definition to avoid spurious
// warning messages when dynamically loading libraries at runtime on macOS
TabbedComponent::ButtonBar::ButtonBar (TabbedComponent& tabComp, TabbedButtonBar::Orientation o)
: TabbedButtonBar (o), owner (tabComp)
{
}
//==============================================================================
TabbedComponent::TabbedComponent (TabbedButtonBar::Orientation orientation)