Bug 966439 - BroadcastChannel API - patch 10 - explicit constructors are needed, CLOSED TREE

This commit is contained in:
Andrea Marchesini 2015-01-14 12:40:19 +00:00
parent 75c5cf791c
commit 2914807a74

View File

@ -241,7 +241,7 @@ class CloseRunnable MOZ_FINAL : public nsICancelableRunnable
public:
NS_DECL_ISUPPORTS
CloseRunnable(BroadcastChannel* aBC)
explicit CloseRunnable(BroadcastChannel* aBC)
: mBC(aBC)
{
MOZ_ASSERT(mBC);
@ -272,7 +272,7 @@ class TeardownRunnable MOZ_FINAL : public nsICancelableRunnable
public:
NS_DECL_ISUPPORTS
TeardownRunnable(BroadcastChannelChild* aActor)
explicit TeardownRunnable(BroadcastChannelChild* aActor)
: mActor(aActor)
{
MOZ_ASSERT(mActor);
@ -306,7 +306,7 @@ class BroadcastChannelFeature : public workers::WorkerFeature
BroadcastChannel* mChannel;
public:
BroadcastChannelFeature(BroadcastChannel* aChannel)
explicit BroadcastChannelFeature(BroadcastChannel* aChannel)
: mChannel(aChannel)
{
MOZ_ASSERT(aChannel);
@ -354,7 +354,7 @@ class CheckPermissionRunnable MOZ_FINAL
public:
bool mResult;
CheckPermissionRunnable(workers::WorkerPrivate* aWorkerPrivate)
explicit CheckPermissionRunnable(workers::WorkerPrivate* aWorkerPrivate)
: workers::WorkerMainThreadRunnable(aWorkerPrivate)
, mResult(false)
{