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:
parent
f7f6dad663
commit
814852e966
1 changed files with 7 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue