- Timestamp:
- Sep 25, 2020 9:07:10 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 140574
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/VariantUtils.cpp
r70577 r86297 1228 1228 m_var_array = new nsXPTCVariant[m_num_array]; 1229 1229 if (!m_var_array) goto done; 1230 memset(m_var_array, 0, m_num_array * sizeof(m_var_array[0]));1230 /*memset(m_var_array, 0, m_num_array * sizeof(m_var_array[0])); - VBox not needed */ 1231 1231 1232 1232 m_buffer_array = new void *[m_num_array]; -
trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h
r51167 r86297 142 142 VAL_IS_CSTR = 0x40 // val.p holds a pointer to cstring needing cleanup 143 143 }; 144 145 /* VBox: Added to prevent -Wclass-memaccess warnings (nsXPTType has a constructor) in python/src/VariantUtils.cpp */ 146 nsXPTCVariant() : ptr(NULL), flags(0) 147 { 148 val.p = NULL; 149 type.flags = 0; /* stupid nsXPTType constructor only do random bytes (documented) */ 150 } 144 151 145 152 void ClearFlags() {flags = 0;}
Note:
See TracChangeset
for help on using the changeset viewer.