VirtualBox

Changeset 91528 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Oct 1, 2021 6:42:13 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147222
Message:

xpcom: ​bugref:9790 - Placate -Wdeprecated-copy that is upset by
operator= that is declared private (and not implemented, but the
compiler doesn't know that). Make this explicit with =delete when in
C++11 mode.

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nscore.h

    r40426 r91528  
    420420  */
    421421#endif
    422  
     422
     423#if __cplusplus+0 > 201100L
     424#define NS_DEFAULT  = default
     425#define NS_DELETE   = delete
     426#else
     427#define NS_DEFAULT
     428#define NS_DELETE
     429#endif
     430
     431
    423432#ifndef VBOX
    424433/*
  • trunk/src/libs/xpcom18a4/xpcom/string/public/nsTDependentSubstring.h

    r1 r91528  
    8282
    8383    private:
    84         // NOT USED
    85       void operator=( const self_type& );        // we're immutable, you can't assign into a substring
     84        // we're immutable, you can't assign into a substring
     85      void operator=( const self_type& ) NS_DELETE;
     86
    8687  };
    8788
  • trunk/src/libs/xpcom18a4/xpcom/string/public/nsTPromiseFlatString.h

    r1 r91528  
    104104
    105105        // NOT TO BE IMPLEMENTED
    106       void operator=( const self_type& );
     106      void operator=( const self_type& ) NS_DELETE;
    107107
    108108        // NOT TO BE IMPLEMENTED
    109       nsTPromiseFlatString_CharT();
     109      nsTPromiseFlatString_CharT() NS_DELETE;
    110110
    111111    public:
Note: See TracChangeset for help on using the changeset viewer.

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