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:
parent
aee5a3a45e
commit
6bf9bb9a2e
315 changed files with 1031 additions and 1025 deletions
|
|
@ -28,7 +28,7 @@ namespace juce
|
|||
|
||||
#if JUCE_UNIT_TESTS
|
||||
|
||||
class CachedValueTests : public UnitTest
|
||||
class CachedValueTests final : public UnitTest
|
||||
{
|
||||
public:
|
||||
CachedValueTests()
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ void Value::ValueSource::sendChangeMessage (const bool synchronous)
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
class SimpleValueSource : public Value::ValueSource
|
||||
class SimpleValueSource final : public Value::ValueSource
|
||||
{
|
||||
public:
|
||||
SimpleValueSource()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
namespace juce
|
||||
{
|
||||
|
||||
class ValueTreePropertyWithDefaultTests : public UnitTest
|
||||
class ValueTreePropertyWithDefaultTests final : public UnitTest
|
||||
{
|
||||
public:
|
||||
ValueTreePropertyWithDefaultTests()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue