VirtualBox

Changeset 62636 in vbox for trunk/include


Ignore:
Timestamp:
Jul 28, 2016 4:49:39 PM (8 years ago)
Author:
vboxsync
Message:

cdefs.h,*: DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP and DECLARE_CLS_NEW_DELETE_NOOP should require ';' as that makes it easier for editors and such to parse the code.

Location:
trunk/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/MultiResult.h

    r62476 r62636  
    213213private:
    214214
    215     DECLARE_CLS_NEW_DELETE_NOOP(MultiResult)
     215    DECLARE_CLS_NEW_DELETE_NOOP(MultiResult);
    216216
    217217    static void incCounter();
     
    252252private:
    253253
    254     DECLARE_CLS_NEW_DELETE_NOOP (MultiResultRef)
     254    DECLARE_CLS_NEW_DELETE_NOOP(MultiResultRef);
    255255
    256256    HRESULT &mRC;
  • trunk/include/VBox/com/array.h

    r62361 r62636  
    10981098protected:
    10991099
    1100     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(SafeArray)
     1100    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(SafeArray);
    11011101
    11021102    /**
  • trunk/include/iprt/cdefs.h

    r62624 r62636  
    35513551 * @param      Cls     class name to declare for
    35523552 */
    3553 
    35543553#define DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(Cls) \
    3555     inline Cls (const Cls &); \
    3556     inline Cls &operator= (const Cls &);
     3554    inline Cls(const Cls &); \
     3555    inline Cls &operator= (const Cls &)
    35573556
    35583557
     
    35723571#define DECLARE_CLS_NEW_DELETE_NOOP(Cls) \
    35733572    inline static void *operator new (size_t); \
    3574     inline static void operator delete (void *);
     3573    inline static void operator delete (void *)
    35753574
    35763575#endif /* __cplusplus */
  • trunk/include/iprt/cpp/xml.h

    r62474 r62636  
    316316
    317317    /* auto_ptr data doesn't have proper copy semantics */
    318     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP (File)
     318    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(File);
    319319};
    320320
     
    343343
    344344    /* auto_ptr data doesn't have proper copy semantics */
    345     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(MemoryBuf)
     345    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(MemoryBuf);
    346346};
    347347
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