mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882616 - Fix build warnings in docshell/base; r=bz
This commit is contained in:
parent
41c8fbc796
commit
9f598cd603
@ -37,21 +37,25 @@ public:
|
||||
LoadContext(const IPC::SerializedLoadContext& aToCopy,
|
||||
nsIDOMElement* aTopFrameElement,
|
||||
uint32_t aAppId, bool aInBrowser)
|
||||
: mIsNotNull(aToCopy.mIsNotNull)
|
||||
: mTopFrameElement(do_GetWeakReference(aTopFrameElement))
|
||||
, mAppId(aAppId)
|
||||
, mIsContent(aToCopy.mIsContent)
|
||||
, mUsePrivateBrowsing(aToCopy.mUsePrivateBrowsing)
|
||||
, mIsInBrowserElement(aInBrowser)
|
||||
, mAppId(aAppId)
|
||||
, mTopFrameElement(do_GetWeakReference(aTopFrameElement))
|
||||
#ifdef DEBUG
|
||||
, mIsNotNull(aToCopy.mIsNotNull)
|
||||
#endif
|
||||
{}
|
||||
|
||||
private:
|
||||
bool mIsNotNull;
|
||||
nsWeakPtr mTopFrameElement;
|
||||
uint32_t mAppId;
|
||||
bool mIsContent;
|
||||
bool mUsePrivateBrowsing;
|
||||
bool mIsInBrowserElement;
|
||||
uint32_t mAppId;
|
||||
nsWeakPtr mTopFrameElement;
|
||||
#ifdef DEBUG
|
||||
bool mIsNotNull;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
@ -10,6 +10,7 @@ VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
FAIL_ON_WARNINGS := 1
|
||||
LIBRARY_NAME = basedocshell_s
|
||||
MSVC_ENABLE_PGO := 1
|
||||
LIBXUL_LIBRARY = 1
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/AutoRestore.h"
|
||||
#include "mozilla/Casting.h"
|
||||
#include "mozilla/dom/ContentChild.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/TabChild.h"
|
||||
@ -809,7 +810,7 @@ nsDocShell::nsDocShell():
|
||||
++gNumberOfDocShells;
|
||||
if (!PR_GetEnv("MOZ_QUIET")) {
|
||||
printf("++DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
|
||||
gNumberOfDocShells, mHistoryID);
|
||||
gNumberOfDocShells, SafeCast<unsigned long long>(mHistoryID));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@ -838,7 +839,7 @@ nsDocShell::~nsDocShell()
|
||||
--gNumberOfDocShells;
|
||||
if (!PR_GetEnv("MOZ_QUIET")) {
|
||||
printf("--DOCSHELL %p == %ld [id = %llu]\n", (void*) this,
|
||||
gNumberOfDocShells, mHistoryID);
|
||||
gNumberOfDocShells, SafeCast<unsigned long long>(mHistoryID));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user