mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
89d204c315
commit
8619265629
@ -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:
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user