VirtualBox

Ignore:
Timestamp:
Sep 25, 2020 9:07:10 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140574
Message:

xpcom/python/xptcall: shut up warning about memsetting objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/public/xptcall.h

    r51167 r86297  
    142142        VAL_IS_CSTR    = 0x40  // val.p holds a pointer to cstring needing cleanup       
    143143    };
     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    }
    144151
    145152    void ClearFlags()         {flags = 0;}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette