forked from 0ad/0ad
Add final to classes introduced in f9114a87f2
A class which can not be derived from should tell that in the declaration.
This commit is contained in:
parent
62c0080e1b
commit
f22d0d899e
@ -85,7 +85,7 @@ bool JobQueue::empty() const
|
||||
|
||||
js::UniquePtr<JS::JobQueue::SavedJobQueue> JobQueue::saveJobQueue(JSContext*)
|
||||
{
|
||||
class SavedJobQueue : public JS::JobQueue::SavedJobQueue
|
||||
class SavedJobQueue final : public JS::JobQueue::SavedJobQueue
|
||||
{
|
||||
public:
|
||||
SavedJobQueue(QueueType& queue) :
|
||||
|
@ -35,7 +35,7 @@ namespace Script
|
||||
void UnhandledRejectedPromise(JSContext* cx, bool, JS::HandleObject promise,
|
||||
JS::PromiseRejectionHandlingState state, void*);
|
||||
|
||||
class JobQueue : public JS::JobQueue
|
||||
class JobQueue final : public JS::JobQueue
|
||||
{
|
||||
public:
|
||||
~JobQueue() final = default;
|
||||
|
Loading…
Reference in New Issue
Block a user