mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1016680, part 4 - Explicitly initialize members in nsFrameManagerBase's ctor rather than using memset. r=bz
This commit is contained in:
parent
6b3fa8dfeb
commit
e6f41c18a9
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user