VirtualBox

Changeset 62636 in vbox for trunk


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
Files:
8 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
  • trunk/src/VBox/Main/include/AutoCaller.h

    r59996 r62636  
    190190
    191191private:
    192     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoCaller)
    193     DECLARE_CLS_NEW_DELETE_NOOP(AutoCaller)
     192    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoCaller);
     193    DECLARE_CLS_NEW_DELETE_NOOP(AutoCaller);
    194194
    195195    VirtualBoxBase *mObj;
     
    346346private:
    347347
    348     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoInitSpan)
    349     DECLARE_CLS_NEW_DELETE_NOOP(AutoInitSpan)
     348    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoInitSpan);
     349    DECLARE_CLS_NEW_DELETE_NOOP(AutoInitSpan);
    350350
    351351    VirtualBoxBase *mObj;
     
    423423private:
    424424
    425     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoReinitSpan)
    426     DECLARE_CLS_NEW_DELETE_NOOP(AutoReinitSpan)
     425    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoReinitSpan);
     426    DECLARE_CLS_NEW_DELETE_NOOP(AutoReinitSpan);
    427427
    428428    VirtualBoxBase *mObj;
     
    487487private:
    488488
    489     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoUninitSpan)
    490     DECLARE_CLS_NEW_DELETE_NOOP(AutoUninitSpan)
     489    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoUninitSpan);
     490    DECLARE_CLS_NEW_DELETE_NOOP(AutoUninitSpan);
    491491
    492492    VirtualBoxBase *mObj;
  • trunk/src/VBox/Main/include/AutoStateDep.h

    r62485 r62636  
    111111    private:
    112112
    113         DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoStateDependency)
    114         DECLARE_CLS_NEW_DELETE_NOOP(AutoStateDependency)
     113        DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoStateDependency);
     114        DECLARE_CLS_NEW_DELETE_NOOP(AutoStateDependency);
    115115    };
    116116
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r61930 r62636  
    384384    private:
    385385        HRESULT mRC; /* Whether the caller was added. */
    386         DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoVMCallerBase)
     386        DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(AutoVMCallerBase);
    387387    };
    388388
     
    478478        HRESULT mRC; /* Whether the VM ptr was retained. */
    479479        PUVM    mpUVM;
    480         DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(SafeVMPtrBase)
     480        DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(SafeVMPtrBase);
    481481    };
    482482
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r62635 r62636  
    18411841
    18421842private:
    1843     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(IOContext) /* (shuts up C4626 and C4625 MSC warnings) */
     1843    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(IOContext); /* (shuts up C4626 and C4625 MSC warnings) */
    18441844};
    18451845
     
    18521852
    18531853private:
    1854     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(ReadContext) /* (shuts up C4626 and C4625 MSC warnings) */
     1854    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(ReadContext); /* (shuts up C4626 and C4625 MSC warnings) */
    18551855};
    18561856
     
    18631863
    18641864private:
    1865     DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(WriteContext) /* (shuts up C4626 and C4625 MSC warnings) */
     1865    DECLARE_CLS_COPY_CTOR_ASSIGN_NOOP(WriteContext); /* (shuts up C4626 and C4625 MSC warnings) */
    18661866};
    18671867
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