mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
bug 1328964 address modernize-use-override and modernize-use-equals-default r=baku
clang-tidy suggestions in "part 3 - Console API exposed to worklets". MozReview-Commit-ID: Aab74PCau9m --HG-- extra : rebase_source : 0f4a5500e391ee734c3e5fcc0c7930007310de27
This commit is contained in:
parent
2405fe930c
commit
2fb0e06b71
@ -302,8 +302,7 @@ private:
|
||||
class ConsoleRunnable : public StructuredCloneHolderBase
|
||||
{
|
||||
public:
|
||||
virtual
|
||||
~ConsoleRunnable()
|
||||
~ConsoleRunnable() override
|
||||
{
|
||||
// Clear the StructuredCloneHolderBase class.
|
||||
Clear();
|
||||
@ -546,8 +545,7 @@ protected:
|
||||
MOZ_ASSERT(mWorkletThread);
|
||||
}
|
||||
|
||||
virtual
|
||||
~ConsoleWorkletRunnable() = default;
|
||||
~ConsoleWorkletRunnable() override = default;
|
||||
|
||||
NS_IMETHOD
|
||||
Run() override
|
||||
@ -623,12 +621,12 @@ private:
|
||||
mCallData->mStatus = ConsoleCallData::eInUse;
|
||||
}
|
||||
|
||||
~ConsoleCallDataWorkletRunnable()
|
||||
~ConsoleCallDataWorkletRunnable() override
|
||||
{
|
||||
MOZ_ASSERT(!mCallData);
|
||||
}
|
||||
|
||||
virtual void
|
||||
void
|
||||
RunOnMainThread() override
|
||||
{
|
||||
AutoSafeJSContext cx;
|
||||
@ -672,8 +670,7 @@ public:
|
||||
, mConsole(aConsole)
|
||||
{}
|
||||
|
||||
virtual
|
||||
~ConsoleWorkerRunnable() = default;
|
||||
~ConsoleWorkerRunnable() override = default;
|
||||
|
||||
bool
|
||||
Dispatch(JSContext* aCx)
|
||||
@ -812,7 +809,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
~ConsoleCallDataWorkerRunnable()
|
||||
~ConsoleCallDataWorkerRunnable() override
|
||||
{
|
||||
MOZ_ASSERT(!mCallData);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user