VirtualBox

Ignore:
Timestamp:
Apr 10, 2019 9:38:27 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129924
Message:

Recording/Main: Some renaming, comment fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r76553 r78068  
    6565
    6666/**
    67  * Initializes the audio adapter object.
     67 * Initializes the recording settings object.
    6868 *
    6969 * @returns COM result indicator
     
    101101 *  it shares data with is destroyed.
    102102 */
    103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *that)
    104 {
    105     LogFlowThisFuncEnter();
    106     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    107 
    108     ComAssertRet(aParent && that, E_INVALIDARG);
     103HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *aThat)
     104{
     105    LogFlowThisFuncEnter();
     106    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     107
     108    ComAssertRet(aParent && aThat, E_INVALIDARG);
    109109
    110110    /* Enclose the state transition NotReady->InInit->Ready */
     
    115115
    116116    unconst(m->pMachine) = aParent;
    117     m->pPeer = that;
    118 
    119     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    120 
    121     m->bd.share(that->m->bd);
    122     m->mapScreenObj = that->m->mapScreenObj;
     117    m->pPeer = aThat;
     118
     119    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     120
     121    m->bd.share(aThat->m->bd);
     122    m->mapScreenObj = aThat->m->mapScreenObj;
    123123
    124124    autoInitSpan.setSucceeded();
     
    133133 *  of the original object passed as an argument.
    134134 */
    135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *that)
    136 {
    137     LogFlowThisFuncEnter();
    138     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    139 
    140     ComAssertRet(aParent && that, E_INVALIDARG);
     135HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *aThat)
     136{
     137    LogFlowThisFuncEnter();
     138    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     139
     140    ComAssertRet(aParent && aThat, E_INVALIDARG);
    141141
    142142    /* Enclose the state transition NotReady->InInit->Ready */
     
    149149    // mPeer is left null
    150150
    151     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    152 
    153     m->bd.attachCopy(that->m->bd);
    154     m->mapScreenObj = that->m->mapScreenObj;
     151    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     152
     153    m->bd.attachCopy(aThat->m->bd);
     154    m->mapScreenObj = aThat->m->mapScreenObj;
    155155
    156156    autoInitSpan.setSucceeded();
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