Bug 1231378 - part 1 - Fix uninitialized members of classes in docshell/*, r=smaug

This commit is contained in:
Andrea Marchesini 2016-01-12 18:16:59 +00:00
parent 350e925b87
commit 82c8ef73d5
2 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,11 @@ class SerializedLoadContext
{
public:
SerializedLoadContext()
: mIsNotNull(false)
, mIsPrivateBitValid(false)
, mIsContent(false)
, mUsePrivateBrowsing(false)
, mUseRemoteTabs(false)
{
Init(nullptr);
}

View File

@ -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;
}
}