1
0
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:
phosit 2024-08-25 12:38:09 +02:00
parent 62c0080e1b
commit f22d0d899e
2 changed files with 2 additions and 2 deletions

View File

@ -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) :

View File

@ -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;