mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Avoid using memset on a not-trivial type like ServoSizes
This commit is contained in:
parent
37959f9945
commit
2fabd9fa1b
1 changed files with 9 additions and 1 deletions
|
|
@ -74,7 +74,15 @@ struct ServoSizes
|
|||
Ignore
|
||||
};
|
||||
|
||||
ServoSizes() { mozilla::PodZero(this); }
|
||||
ServoSizes()
|
||||
: gcHeapUsed(0)
|
||||
, gcHeapUnused(0)
|
||||
, gcHeapAdmin(0)
|
||||
, gcHeapDecommitted(0)
|
||||
, mallocHeap(0)
|
||||
, nonHeap(0)
|
||||
{
|
||||
}
|
||||
|
||||
void add(Kind kind, size_t n) {
|
||||
switch (kind) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue