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

Add final specifiers in implementation files

This commit is contained in:
Tom Poole 2023-10-06 13:08:34 +01:00
parent aee5a3a45e
commit 6bf9bb9a2e
315 changed files with 1031 additions and 1025 deletions

View file

@ -27,8 +27,8 @@ namespace juce
{
//==============================================================================
class FileChooser::NonNative : public std::enable_shared_from_this<NonNative>,
public FileChooser::Pimpl
class FileChooser::NonNative final : public std::enable_shared_from_this<NonNative>,
public FileChooser::Pimpl
{
public:
NonNative (FileChooser& fileChooser, int flags, FilePreviewComponent* preview)

View file

@ -26,7 +26,7 @@
namespace juce
{
class FileChooserDialogBox::ContentComponent : public Component
class FileChooserDialogBox::ContentComponent final : public Component
{
public:
ContentComponent (const String& name, const String& desc, FileBrowserComponent& chooser)

View file

@ -99,10 +99,10 @@ void FileListComponent::changeListenerCallback (ChangeBroadcaster*)
}
//==============================================================================
class FileListComponent::ItemComponent : public Component,
public TooltipClient,
private TimeSliceClient,
private AsyncUpdater
class FileListComponent::ItemComponent final : public Component,
public TooltipClient,
private TimeSliceClient,
private AsyncUpdater
{
public:
ItemComponent (FileListComponent& fc, TimeSliceThread& t)

View file

@ -77,9 +77,9 @@ constexpr int threeWayCompare (const std::tuple<Ts...>& a, const std::tuple<Ts..
}
//==============================================================================
class FileListTreeItem : public TreeViewItem,
private TimeSliceClient,
private AsyncUpdater
class FileListTreeItem final : public TreeViewItem,
private TimeSliceClient,
private AsyncUpdater
{
public:
FileListTreeItem (FileTreeComponent& treeComp,
@ -210,7 +210,7 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FileListTreeItem)
};
class DirectoryScanner : private ChangeListener
class DirectoryScanner final : private ChangeListener
{
public:
struct Listener
@ -355,7 +355,7 @@ private:
SystemStats::OperatingSystemType systemType;
};
class FileTreeComponent::Controller : private DirectoryScanner::Listener
class FileTreeComponent::Controller final : private DirectoryScanner::Listener
{
public:
explicit Controller (FileTreeComponent& ownerIn)
@ -609,7 +609,7 @@ void FileTreeComponent::setItemHeight (int newHeight)
#if JUCE_UNIT_TESTS
class FileTreeComponentTests : public UnitTest
class FileTreeComponentTests final : public UnitTest
{
public:
//==============================================================================