mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1109697 - Fix more bad implicit constructors in netwerk; r=mcmanus
This commit is contained in:
parent
550e972d13
commit
c94b2e2945
@ -48,7 +48,7 @@ class OfflineObserver
|
||||
public:
|
||||
// A nsRefPtr to this object should be kept by the disconnectable parent.
|
||||
|
||||
OfflineObserver(DisconnectableParent * parent);
|
||||
explicit OfflineObserver(DisconnectableParent * parent);
|
||||
// This method needs to be called in the destructor of the parent
|
||||
// It removes the observer from the nsObserverService list, and it clears
|
||||
// the pointer it holds to the disconnectable parent.
|
||||
|
@ -559,7 +559,7 @@ private:
|
||||
|
||||
static const JSClass sGlobalClass;
|
||||
|
||||
JSRuntimeWrapper(JSRuntime* rt)
|
||||
explicit JSRuntimeWrapper(JSRuntime* rt)
|
||||
: mRuntime(rt), mContext(nullptr), mGlobal(rt, nullptr), mOK(false)
|
||||
{
|
||||
MOZ_COUNT_CTOR(JSRuntimeWrapper);
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
NS_DECL_NSISPECULATIVECONNECTIONOVERRIDER
|
||||
NS_DECL_NSIINTERFACEREQUESTOR
|
||||
|
||||
AltSvcOverride(nsIInterfaceRequestor *aRequestor)
|
||||
explicit AltSvcOverride(nsIInterfaceRequestor *aRequestor)
|
||||
: mCallbacks(aRequestor) {}
|
||||
|
||||
private:
|
||||
|
@ -39,7 +39,7 @@ protected:
|
||||
|
||||
virtual ~InterceptedChannelBase();
|
||||
public:
|
||||
InterceptedChannelBase(nsINetworkInterceptController* aController);
|
||||
explicit InterceptedChannelBase(nsINetworkInterceptController* aController);
|
||||
|
||||
// Notify the interception controller that the channel has been intercepted
|
||||
// and prepare the response body output stream.
|
||||
|
@ -1969,7 +1969,7 @@ class RemoveObserverRunnable : public nsRunnable
|
||||
nsRefPtr<WebSocketChannel> mChannel;
|
||||
|
||||
public:
|
||||
RemoveObserverRunnable(WebSocketChannel* aChannel)
|
||||
explicit RemoveObserverRunnable(WebSocketChannel* aChannel)
|
||||
: mChannel(aChannel)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user