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

View File

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

View File

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