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

Fix some LLVM 17 compiler warnings

This commit is contained in:
Tom Poole 2023-09-21 14:48:07 +01:00
parent 951b873c14
commit 2fb19ffd8f
176 changed files with 867 additions and 894 deletions

View file

@ -29,12 +29,12 @@
particular client covers, and updates itself when messages arrive from the master
containing new canvas states.
*/
class ClientCanvasComponent : public Component,
private OSCSender,
private OSCReceiver,
private OSCReceiver::Listener<OSCReceiver::RealtimeCallback>,
private AsyncUpdater,
private Timer
class ClientCanvasComponent final : public Component,
private OSCSender,
private OSCReceiver,
private OSCReceiver::Listener<OSCReceiver::RealtimeCallback>,
private AsyncUpdater,
private Timer
{
public:
ClientCanvasComponent (PropertiesFile& p, int windowIndex) : properties (p)

View file

@ -24,7 +24,7 @@
*/
struct BlankCanvas : public AnimatedContent
struct BlankCanvas final : public AnimatedContent
{
String getName() const override { return "Blank Canvas"; }
void reset() override {}
@ -33,7 +33,7 @@ struct BlankCanvas : public AnimatedContent
};
//==============================================================================
struct GridLines : public AnimatedContent
struct GridLines final : public AnimatedContent
{
String getName() const override { return "Grid Lines"; }
void reset() override {}
@ -64,7 +64,7 @@ struct GridLines : public AnimatedContent
};
//==============================================================================
struct BackgroundLogo : public AnimatedContent
struct BackgroundLogo : public AnimatedContent
{
BackgroundLogo()
{
@ -99,7 +99,7 @@ struct BackgroundLogo : public AnimatedContent
};
//==============================================================================
struct FlockDemo : public BackgroundLogo
struct FlockDemo : public BackgroundLogo
{
String getName() const override { return "Flock"; }
@ -358,7 +358,7 @@ struct FlockDemo : public BackgroundLogo
};
//==============================================================================
struct FlockWithText : public FlockDemo
struct FlockWithText final : public FlockDemo
{
FlockWithText()
{
@ -445,7 +445,7 @@ struct FlockWithText : public FlockDemo
};
//==============================================================================
struct SmallFlock : public FlockDemo
struct SmallFlock final : public FlockDemo
{
String getName() const override { return "Small Flock"; }
@ -456,7 +456,7 @@ struct SmallFlock : public FlockDemo
};
//==============================================================================
struct BigFlock : public FlockDemo
struct BigFlock final : public FlockDemo
{
String getName() const override { return "Big Flock"; }
@ -468,7 +468,7 @@ struct BigFlock : public FlockDemo
//==============================================================================
template <int numHorizontalLogos>
struct MultiLogo : public BackgroundLogo
struct MultiLogo final : public BackgroundLogo
{
String getName() const override { return "Multi-Logo " + String ((int) numHorizontalLogos); }

View file

@ -47,7 +47,7 @@ namespace
//==============================================================================
class NetworkGraphicsDemoApplication : public JUCEApplication
class NetworkGraphicsDemoApplication final : public JUCEApplication
{
public:
NetworkGraphicsDemoApplication() : properties (getPropertyFileOptions())
@ -89,7 +89,7 @@ public:
}
//==============================================================================
struct MainWindow : public DocumentWindow
struct MainWindow final : public DocumentWindow
{
explicit MainWindow (PropertiesFile& props)
: DocumentWindow ("JUCE Networked Graphics Demo - Master", Colours::white, DocumentWindow::allButtons)

View file

@ -28,11 +28,11 @@
Runs the master node, calls the demo to update the canvas, broadcasts those changes
out to slaves, and shows a view of all the clients to allow them to be dragged around.
*/
struct MasterContentComponent : public Component,
private Timer,
private OSCSender,
private OSCReceiver,
private OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>
struct MasterContentComponent final : public Component,
private Timer,
private OSCSender,
private OSCReceiver,
private OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>
{
MasterContentComponent (PropertiesFile& props)
: properties (props)
@ -275,7 +275,7 @@ private:
}
//==============================================================================
struct DeviceComponent : public Component
struct DeviceComponent final : public Component
{
DeviceComponent (MasterContentComponent& e, String name)
: Component (name), editor (e)

View file

@ -289,7 +289,7 @@ private:
};
//==============================================================================
class CanvasGeneratingContext : public LowLevelGraphicsContext
class CanvasGeneratingContext final : public LowLevelGraphicsContext
{
public:
CanvasGeneratingContext (SharedCanvasDescription& c) : canvas (c)
@ -405,7 +405,7 @@ public:
private:
//==============================================================================
struct SharedCanvasHolder : public ReferenceCountedObject
struct SharedCanvasHolder final : public ReferenceCountedObject
{
SharedCanvasDescription canvas;
};