Bug 1318335 - Use C++11's override and remove virtual where applicable in ipc/. r=billm

MozReview-Commit-ID: 2Ae0htgmM7T

--HG--
extra : rebase_source : 8d98e7f6947f916e8091ca63aeaf838012cdc5ec
This commit is contained in:
Andi-Bogdan Postelnicu 2016-11-17 15:12:09 +02:00
parent 89d204c315
commit 8619265629
3 changed files with 8 additions and 8 deletions

View File

@ -42,7 +42,7 @@ public:
#if defined(XP_MACOSX) && defined(MOZ_GMP_SANDBOX)
class MacSandboxStarter : public mozilla::gmp::SandboxStarter {
public:
virtual bool Start(const char *aLibPath) override {
bool Start(const char *aLibPath) override {
std::string err;
bool rv = mozilla::StartMacSandbox(mInfo, err);
if (!rv) {
@ -50,7 +50,7 @@ public:
}
return rv;
}
virtual void SetSandboxInfo(MacSandboxInfo* aSandboxInfo) override {
void SetSandboxInfo(MacSandboxInfo* aSandboxInfo) override {
mInfo = *aSandboxInfo;
}
private:

View File

@ -52,13 +52,13 @@ class TestChild final : public mozilla::ipc::PBackgroundTestChild
}
protected:
~TestChild()
~TestChild() override
{
MOZ_COUNT_DTOR(TestChild);
}
public:
virtual mozilla::ipc::IPCResult
mozilla::ipc::IPCResult
Recv__delete__(const nsCString& aTestArg) override;
};

View File

@ -84,13 +84,13 @@ class TestParent final : public mozilla::ipc::PBackgroundTestParent
}
protected:
~TestParent()
~TestParent() override
{
MOZ_COUNT_DTOR(TestParent);
}
public:
virtual void
void
ActorDestroy(ActorDestroyReason aWhy) override;
};
@ -399,7 +399,7 @@ public:
}
private:
~InitUDPSocketParentCallback() = default;
~InitUDPSocketParentCallback() override = default;
RefPtr<UDPSocketParent> mActor;
nsCString mFilter;
@ -596,7 +596,7 @@ public:
}
private:
~CheckPermissionRunnable()
~CheckPermissionRunnable() override
{
NS_ProxyRelease(mBackgroundEventTarget, mActor.forget());
}