Browse Source

Demos: Fix some compiler warnings

v7.0.9
Tom Poole 3 years ago
parent
commit
d8a2095400
3 changed files with 2 additions and 6 deletions
  1. +1
    -1
      extras/AudioPerformanceTest/Source/Main.cpp
  2. +0
    -4
      extras/AudioPerformanceTest/Source/MainComponent.h
  3. +1
    -1
      extras/NetworkGraphicsDemo/Source/Demos.h

+ 1
- 1
extras/AudioPerformanceTest/Source/Main.cpp 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


+ 0
- 4
extras/AudioPerformanceTest/Source/MainComponent.h 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(); }

+ 1
- 1
extras/NetworkGraphicsDemo/Source/Demos.h 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());


Loading…
Cancel
Save