mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +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)
|
#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:
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user