1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Demos: Fix missing prototype warning

This commit is contained in:
reuk 2022-06-24 19:06:58 +01:00
parent 7eb99ed8ec
commit 6dc002b89c
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
3 changed files with 6 additions and 6 deletions

View file

@ -55,9 +55,6 @@
#include "../../../DSP/WaveShaperTanhDemo.h"
#include "../../../Utilities/Box2DDemo.h"
#if JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX || JUCE_BSD
#include "../../../Utilities/ChildProcessDemo.h"
#endif
#include "../../../Utilities/CryptographyDemo.h"
#include "../../../Utilities/JavaScriptDemo.h"
#include "../../../Utilities/LiveConstantDemo.h"

View file

@ -61,8 +61,6 @@ void registerDemos_One() noexcept;
void registerDemos_Two() noexcept;
//==============================================================================
// used by child-process demo
bool invokeChildProcessDemo (const String& commandLine);
void registerAllDemos() noexcept;
Component* createIntroDemo();
@ -76,3 +74,8 @@ extern std::unique_ptr<AudioDeviceManager> sharedAudioDeviceManager;
AudioDeviceManager& getSharedAudioDeviceManager (int numInputChannels = -1, int numOutputChannels = -1);
ApplicationCommandManager& getGlobalCommandManager();
// A function in this demo is called from the DemoRunner's entry point
#if JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX || JUCE_BSD
#include "../../../Utilities/ChildProcessDemo.h"
#endif

View file

@ -303,7 +303,7 @@ public:
child process to launch when the command line parameters indicate that we're
being asked to run as a child process.
*/
bool invokeChildProcessDemo (const String& commandLine)
inline bool invokeChildProcessDemo (const String& commandLine)
{
auto worker = std::make_unique<DemoWorkerProcess>();