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

@ -26,7 +26,7 @@
namespace juce
{
class ValueTree::SharedObject : public ReferenceCountedObject
class ValueTree::SharedObject final : public ReferenceCountedObject
{
public:
using Ptr = ReferenceCountedObjectPtr<SharedObject>;
@ -408,7 +408,7 @@ public:
}
//==============================================================================
struct SetPropertyAction : public UndoableAction
struct SetPropertyAction final : public UndoableAction
{
SetPropertyAction (Ptr targetObject, const Identifier& propertyName,
const var& newVal, const var& oldVal, bool isAdding, bool isDeleting,
@ -472,7 +472,7 @@ public:
};
//==============================================================================
struct AddOrRemoveChildAction : public UndoableAction
struct AddOrRemoveChildAction final : public UndoableAction
{
AddOrRemoveChildAction (Ptr parentObject, int index, SharedObject* newChild)
: target (std::move (parentObject)),
@ -524,7 +524,7 @@ public:
};
//==============================================================================
struct MoveChildAction : public UndoableAction
struct MoveChildAction final : public UndoableAction
{
MoveChildAction (Ptr parentObject, int fromIndex, int toIndex) noexcept
: parent (std::move (parentObject)), startIndex (fromIndex), endIndex (toIndex)
@ -809,8 +809,8 @@ int ValueTree::getReferenceCount() const noexcept
}
//==============================================================================
struct ValueTreePropertyValueSource : public Value::ValueSource,
private ValueTree::Listener
struct ValueTreePropertyValueSource final : public Value::ValueSource,
private ValueTree::Listener
{
ValueTreePropertyValueSource (const ValueTree& vt, const Identifier& prop, UndoManager* um, bool sync)
: tree (vt), property (prop), undoManager (um), updateSynchronously (sync)
@ -1118,7 +1118,7 @@ JUCE_END_IGNORE_WARNINGS_MSVC
//==============================================================================
#if JUCE_UNIT_TESTS
class ValueTreeTests : public UnitTest
class ValueTreeTests final : public UnitTest
{
public:
ValueTreeTests()