VirtualBox

Ignore:
Timestamp:
Feb 2, 2010 8:37:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57185
Message:

Main: get rid of Backupable<>::hasActualChanges and the operator== in all the machine data structures which it required; nuke obsolete Shareable.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MediumAttachmentImpl.cpp

    r26167 r26171  
    4444    { }
    4545
    46     bool operator==(const BackupableMediumAttachmentData &that) const
    47     {
    48         return    this == &that
    49                || (fPassthrough == that.fPassthrough);
    50     }
    51 
    5246    ComObjPtr<Medium>   pMedium;
    5347    /* Since MediumAttachment is not a first class citizen when it
     
    282276 *  @note Locks this object for writing.
    283277 */
    284 bool MediumAttachment::rollback()
     278void MediumAttachment::rollback()
    285279{
    286280    LogFlowThisFunc(("ENTER - %s\n", getLogName()));
     
    288282    /* sanity */
    289283    AutoCaller autoCaller(this);
    290     AssertComRCReturn (autoCaller.rc(), false);
     284    AssertComRCReturnVoid(autoCaller.rc());
    291285
    292286    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    293287
    294     bool changed = false;
    295 
    296     if (m->bd.isBackedUp())
    297     {
    298         /* we need to check all data to see whether anything will be changed
    299          * after rollback */
    300         changed = m->bd.hasActualChanges();
    301         m->bd.rollback();
    302     }
    303 
    304     LogFlowThisFunc(("LEAVE - %s - returning %RTbool\n", getLogName(), changed));
    305     return changed;
     288    m->bd.rollback();
     289
     290    LogFlowThisFunc(("LEAVE - %s\n", getLogName()));
    306291}
    307292
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