VirtualBox

Changeset 85076 in vbox for trunk/include


Ignore:
Timestamp:
Jul 6, 2020 8:59:10 PM (5 years ago)
Author:
vboxsync
Message:

iprt/errcore.h: Apply RT_NO_THROW_DEF to the inlined RTErrStrictType class methods. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/errcore.h

    r84063 r85076  
    133133     * @param   rcObj       IPRT status code object from an automatic cast.
    134134     */
    135     RTErrStrictType(RTErrStrictType2 const rcObj)
     135    RTErrStrictType(RTErrStrictType2 const rcObj) RT_NO_THROW_DEF
    136136        : m_rc(rcObj.getValue())
    137137    {
     
    143143     * @param   rc          IPRT style status code.
    144144     */
    145     RTErrStrictType(int32_t rc)
     145    RTErrStrictType(int32_t rc) RT_NO_THROW_DEF
    146146        : m_rc(rc)
    147147    {
     
    163163     * Test for success.
    164164     */
    165     bool success() const
     165    bool success() const RT_NO_THROW_DEF
    166166    {
    167167        return m_rc >= 0;
     
    171171    /** @name Try ban a number of wrong types.
    172172     * @{ */
    173     RTErrStrictType(uint8_t rc)        : m_rc(-999) { NOREF(rc); }
    174     RTErrStrictType(uint16_t rc)       : m_rc(-999) { NOREF(rc); }
    175     RTErrStrictType(uint32_t rc)       : m_rc(-999) { NOREF(rc); }
    176     RTErrStrictType(uint64_t rc)       : m_rc(-999) { NOREF(rc); }
    177     RTErrStrictType(int8_t rc)         : m_rc(-999) { NOREF(rc); }
    178     RTErrStrictType(int16_t rc)        : m_rc(-999) { NOREF(rc); }
    179     RTErrStrictType(int64_t rc)        : m_rc(-999) { NOREF(rc); }
     173    RTErrStrictType(uint8_t rc)  RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     174    RTErrStrictType(uint16_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     175    RTErrStrictType(uint32_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     176    RTErrStrictType(uint64_t rc) RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     177    RTErrStrictType(int8_t rc)   RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     178    RTErrStrictType(int16_t rc)  RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
     179    RTErrStrictType(int64_t rc)  RT_NO_THROW_DEF : m_rc(-999) { NOREF(rc); }
    180180    /** @todo fight long here - clashes with int32_t/int64_t on some platforms. */
    181181    /** @} */
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