diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-08-20 08:25:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 08:25:06 +0200 |
commit | 3499a2e4932e3054a229987aca80e7abd9c75c6c (patch) | |
tree | 1af747e97d275d0a47a0a8d75ce14e2b9f749fe0 /layout/base | |
parent | 29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd (diff) | |
parent | b5e87d0644f634240bf3c67cca505f91f271cfa9 (diff) | |
download | UXP-3499a2e4932e3054a229987aca80e7abd9c75c6c.tar UXP-3499a2e4932e3054a229987aca80e7abd9c75c6c.tar.gz UXP-3499a2e4932e3054a229987aca80e7abd9c75c6c.tar.lz UXP-3499a2e4932e3054a229987aca80e7abd9c75c6c.tar.xz UXP-3499a2e4932e3054a229987aca80e7abd9c75c6c.zip |
Merge pull request #714 from trav90/class-memaccess-errors
Fix more -Wclass-memaccess warnings:
- Avoid using memset on a not-trivial types
- Avoid doing memset on non-POD structures
- Be more restrictive with memset on Array containers
Diffstat (limited to 'layout/base')
-rw-r--r-- | layout/base/nsArenaMemoryStats.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layout/base/nsArenaMemoryStats.h b/layout/base/nsArenaMemoryStats.h index ba09baaa4..2a872cfe8 100644 --- a/layout/base/nsArenaMemoryStats.h +++ b/layout/base/nsArenaMemoryStats.h @@ -18,7 +18,12 @@ public: Other // Everything else. }; - nsTabSizes() { mozilla::PodZero(this); } + nsTabSizes() + : mDom(0) + , mStyle(0) + , mOther(0) + { + } void add(Kind kind, size_t n) { |