summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-20 08:25:06 +0200
committerGitHub <noreply@github.com>2018-08-20 08:25:06 +0200
commit3499a2e4932e3054a229987aca80e7abd9c75c6c (patch)
tree1af747e97d275d0a47a0a8d75ce14e2b9f749fe0 /dom
parent29fbe8f27d58a0dfa64aadbbd1757dbbeff3a4fd (diff)
parentb5e87d0644f634240bf3c67cca505f91f271cfa9 (diff)
downloadUXP-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 'dom')
-rw-r--r--dom/bindings/BindingUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h
index 3e58390c9..24b47a545 100644
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -515,7 +515,7 @@ class ProtoAndIfaceCache
{
public:
PageTableCache() {
- memset(&mPages, 0, sizeof(mPages));
+ memset(mPages.begin(), 0, sizeof(mPages));
}
~PageTableCache() {