VirtualBox

Changeset 81674 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 5, 2019 2:44:22 PM (5 years ago)
Author:
vboxsync
Message:

Main: Fixes for deprecated implicit copy operators (GCC 9).

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AudioDriver.h

    r76562 r81674  
    4040        , strName(a_strName) { }
    4141
    42     AudioDriverCfg& operator=(AudioDriverCfg that)
     42    /** Copy assignment operator. */
     43    AudioDriverCfg& operator=(AudioDriverCfg const &a_rThat) RT_NOEXCEPT
    4344    {
    44         this->strDev  = that.strDev;
    45         this->uInst   = that.uInst;
    46         this->uLUN    = that.uLUN;
    47         this->strName = that.strName;
     45        this->strDev  = a_rThat.strDev;
     46        this->uInst   = a_rThat.uInst;
     47        this->uLUN    = a_rThat.uLUN;
     48        this->strName = a_rThat.strName;
    4849
    4950        return *this;
     
    7273    AudioDriver(Console *pConsole);
    7374    virtual ~AudioDriver();
     75
     76    /** Copy assignment operator. */
     77    AudioDriver &operator=(AudioDriver const &a_rThat) RT_NOEXCEPT;
    7478
    7579    Console *GetParent(void) { return mpConsole; }
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r81429 r81674  
    580580        { }
    581581
    582         // copy constructor
     582        /** Copy constructor. */
    583583        SharedFolderData(const SharedFolderData& aThat)
    584584            : m_strHostPath(aThat.m_strHostPath)
     
    587587            , m_strAutoMountPoint(aThat.m_strAutoMountPoint)
    588588        { }
     589
     590        /** Copy assignment operator. */
     591        SharedFolderData &operator=(SharedFolderData const &a_rThat) RT_NOEXCEPT
     592        {
     593            m_strHostPath       = a_rThat.m_strHostPath;
     594            m_fWritable         = a_rThat.m_fWritable;
     595            m_fAutoMount        = a_rThat.m_fAutoMount;
     596            m_strAutoMountPoint = a_rThat.m_strAutoMountPoint;
     597
     598            return *this;
     599        }
    589600
    590601        Utf8Str m_strHostPath;
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r80873 r81674  
    765765           : mValue(aThat.mValue) { }
    766766
     767    /** Copy assignment operator. */
     768    GuestProcessStreamValue &operator=(GuestProcessStreamValue const &a_rThat) RT_NOEXCEPT
     769    {
     770        mValue = a_rThat.mValue;
     771
     772        return *this;
     773    }
     774
    767775    Utf8Str mValue;
    768776};
  • trunk/src/VBox/Main/src-client/AudioDriver.cpp

    r76553 r81674  
    3838}
    3939
     40
    4041AudioDriver::~AudioDriver(void)
    4142{
     43}
     44
     45
     46AudioDriver &AudioDriver::operator=(AudioDriver const &a_rThat) RT_NOEXCEPT
     47{
     48    mpConsole  = a_rThat.mpConsole;
     49    mCfg       = a_rThat.mCfg;
     50    mfAttached = a_rThat.mfAttached;
     51
     52    return *this;
    4253}
    4354
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