mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +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
|
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) {
|
void add(Kind kind, size_t n) {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue