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

Demos: Fix some compiler warnings

This commit is contained in:
Tom Poole 2022-12-21 16:55:07 +00:00
parent 57202b360a
commit d8a2095400
3 changed files with 2 additions and 6 deletions

View file

@ -62,7 +62,7 @@ public:
: DocumentWindow (name, Colours::lightgrey, DocumentWindow::allButtons)
{
setUsingNativeTitleBar (true);
setContentOwned (createMainContentComponent(), true);
setContentOwned (new MainContentComponent(), true);
setResizable (false, false);
#if JUCE_IOS || JUCE_ANDROID

View file

@ -271,7 +271,3 @@ private:
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
};
// (This function is called by the app startup code to create our main component)
Component* createMainContentComponent() { return new MainContentComponent(); }

View file

@ -490,7 +490,7 @@ struct MultiLogo : public BackgroundLogo
};
//==============================================================================
void createAllDemos (OwnedArray<AnimatedContent>& demos)
inline void createAllDemos (OwnedArray<AnimatedContent>& demos)
{
demos.add (new FlockDemo());
demos.add (new FlockWithText());