Bug 1016680, part 4 - Explicitly initialize members in nsFrameManagerBase's ctor rather than using memset. r=bz

This commit is contained in:
Jonathan Watt 2014-06-12 20:25:33 +01:00
parent 6b3fa8dfeb
commit e6f41c18a9

View File

@ -30,8 +30,13 @@ class nsFrameManagerBase
{
public:
nsFrameManagerBase()
: mPresShell(nullptr)
, mStyleSet(nullptr)
, mRootFrame(nullptr)
, mUndisplayedMap(nullptr)
, mIsDestroyingFrames(false)
{
memset(this, '\0', sizeof(nsFrameManagerBase));
mPlaceholderMap.ops = nullptr;
}
bool IsDestroyingFrames() { return mIsDestroyingFrames; }