mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Avoid using memset on a not-trivial type like TabSizes
This commit is contained in:
parent
6b97ee8cab
commit
37959f9945
1 changed files with 7 additions and 1 deletions
|
|
@ -37,7 +37,13 @@ struct TabSizes
|
|||
Other
|
||||
};
|
||||
|
||||
TabSizes() { mozilla::PodZero(this); }
|
||||
TabSizes()
|
||||
: objects(0)
|
||||
, strings(0)
|
||||
, private_(0)
|
||||
, other(0)
|
||||
{
|
||||
}
|
||||
|
||||
void add(Kind kind, size_t n) {
|
||||
switch (kind) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue