Bug 1048242 - Fix more bad implicit constructors in docshell; r=smaug

This commit is contained in:
Ehsan Akhgari 2014-08-05 09:19:03 -04:00
parent 5468b836e6
commit 8c8feaa815
6 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ public:
nsresult Init();
protected:
nsDSURIContentListener(nsDocShell* aDocShell);
explicit nsDSURIContentListener(nsDocShell* aDocShell);
virtual ~nsDSURIContentListener();
void DropDocShellreference() {

View File

@ -659,7 +659,7 @@ protected:
class RestorePresentationEvent : public nsRunnable {
public:
NS_DECL_NSIRUNNABLE
RestorePresentationEvent(nsDocShell *ds) : mDocShell(ds) {}
explicit RestorePresentationEvent(nsDocShell *ds) : mDocShell(ds) {}
void Revoke() { mDocShell = nullptr; }
private:
nsRefPtr<nsDocShell> mDocShell;
@ -922,7 +922,7 @@ private:
public:
class InterfaceRequestorProxy : public nsIInterfaceRequestor {
public:
InterfaceRequestorProxy(nsIInterfaceRequestor* p);
explicit InterfaceRequestorProxy(nsIInterfaceRequestor* p);
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIINTERFACEREQUESTOR

View File

@ -20,7 +20,7 @@ class nsDocShellEditorData
{
public:
nsDocShellEditorData(nsIDocShell* inOwningDocShell);
explicit nsDocShellEditorData(nsIDocShell* inOwningDocShell);
~nsDocShellEditorData();
nsresult MakeEditable(bool inWaitForUriLoad);

View File

@ -42,7 +42,7 @@ protected:
public:
nsDocShellEnumerator(int32_t inEnumerationDirection);
explicit nsDocShellEnumerator(int32_t inEnumerationDirection);
// nsISupports
NS_DECL_ISUPPORTS

View File

@ -108,7 +108,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSISIMPLEENUMERATOR
nsSHEnumerator(nsSHistory * aHistory);
explicit nsSHEnumerator(nsSHistory * aHistory);
protected:
friend class nsSHistory;

View File

@ -209,7 +209,7 @@ protected:
// Weak mRequest is ok; we'll be told if it decides to go away.
nsIRequest * const mRequest;
nsStatusInfo(nsIRequest* aRequest) :
explicit nsStatusInfo(nsIRequest* aRequest) :
mRequest(aRequest)
{
MOZ_COUNT_CTOR(nsStatusInfo);
@ -222,7 +222,7 @@ protected:
struct nsRequestInfo : public PLDHashEntryHdr
{
nsRequestInfo(const void* key)
explicit nsRequestInfo(const void* key)
: mKey(key), mCurrentProgress(0), mMaxProgress(0), mUploading(false)
, mLastStatus(nullptr)
{