mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1231378 - part 1 - Fix uninitialized members of classes in docshell/*, r=smaug
This commit is contained in:
parent
350e925b87
commit
82c8ef73d5
@ -28,6 +28,11 @@ class SerializedLoadContext
|
||||
{
|
||||
public:
|
||||
SerializedLoadContext()
|
||||
: mIsNotNull(false)
|
||||
, mIsPrivateBitValid(false)
|
||||
, mIsContent(false)
|
||||
, mUsePrivateBrowsing(false)
|
||||
, mUseRemoteTabs(false)
|
||||
{
|
||||
Init(nullptr);
|
||||
}
|
||||
|
@ -233,6 +233,7 @@ nsSHistory::nsSHistory()
|
||||
: mIndex(-1)
|
||||
, mLength(0)
|
||||
, mRequestedIndex(-1)
|
||||
, mRootDocShell(nullptr)
|
||||
{
|
||||
// Add this new SHistory object to the list
|
||||
PR_APPEND_LINK(this, &gSHistoryList);
|
||||
@ -1004,6 +1005,7 @@ class TransactionAndDistance
|
||||
public:
|
||||
TransactionAndDistance(nsISHTransaction* aTrans, uint32_t aDist)
|
||||
: mTransaction(aTrans)
|
||||
, mLastTouched(0)
|
||||
, mDistance(aDist)
|
||||
{
|
||||
mViewer = GetContentViewerForTransaction(aTrans);
|
||||
@ -1017,7 +1019,6 @@ public:
|
||||
shentryInternal->GetLastTouched(&mLastTouched);
|
||||
} else {
|
||||
NS_WARNING("Can't cast to nsISHEntryInternal?");
|
||||
mLastTouched = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user