VirtualBox

Changeset 22779 in vbox for trunk


Ignore:
Timestamp:
Sep 4, 2009 1:15:27 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51958
Message:

Main: cosmetics

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

Legend:

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

    r22624 r22779  
    18991899/**
    19001900 * Returns @c true if this hard disk cannot be modified because it has
    1901  * dependants (children) or is part of the snapshot. Related to the hard disk
     1901 * dependents (children) or is part of the snapshot. Related to the hard disk
    19021902 * type and posterity, not to the current media state.
    19031903 *
  • trunk/src/VBox/Main/MachineImpl.cpp

    r22762 r22779  
    21152115                                     LONG aDevice)
    21162116{
    2117     LogFlowThisFunc (("aControllerName=\"%ls\" aControllerPort=%ld aDevice=%ld\n",
     2117    LogFlowThisFunc(("aControllerName=\"%ls\" aControllerPort=%ld aDevice=%ld\n",
    21182118                     aControllerName, aControllerPort, aDevice));
    21192119
     
    21312131    /// @todo NEWMEDIA implicit machine registration
    21322132    if (!mData->mRegistered)
    2133         return setError (VBOX_E_INVALID_OBJECT_STATE,
    2134             tr ("Cannot attach hard disks to an unregistered machine"));
     2133        return setError(VBOX_E_INVALID_OBJECT_STATE,
     2134                        tr("Cannot attach hard disks to an unregistered machine"));
    21352135
    21362136    AssertReturn(mData->mMachineState != MachineState_Saved, E_FAIL);
    21372137
    2138     if (Global::IsOnlineOrTransient (mData->mMachineState))
    2139         return setError (VBOX_E_INVALID_VM_STATE,
    2140             tr ("Invalid machine state: %d"), mData->mMachineState);
     2138    if (Global::IsOnlineOrTransient(mData->mMachineState))
     2139        return setError(VBOX_E_INVALID_VM_STATE,
     2140                        tr("Invalid machine state: %d"),
     2141                        mData->mMachineState);
    21412142
    21422143    /* Check for an existing controller. */
     
    21582159        || (aDevice >= (LONG)devicesPerPort)
    21592160       )
    2160         return setError (E_INVALIDARG,
    2161             tr ("The port and/or count parameter are out of range [%lu:%lu]"),
    2162                 portCount, devicesPerPort);
     2161        return setError(E_INVALIDARG,
     2162                        tr("The port and/or count parameter are out of range [%lu:%lu]"),
     2163                        portCount,
     2164                        devicesPerPort);
    21632165
    21642166    /* check if the device slot is already busy */
    2165     HDData::AttachmentList::const_iterator it =
    2166         std::find_if (mHDData->mAttachments.begin(),
    2167                       mHDData->mAttachments.end(),
    2168                       HardDiskAttachment::EqualsTo (aControllerName, aControllerPort, aDevice));
    2169 
     2167    HDData::AttachmentList::const_iterator it = std::find_if(mHDData->mAttachments.begin(),
     2168                                                             mHDData->mAttachments.end(),
     2169                                                             HardDiskAttachment::EqualsTo(aControllerName, aControllerPort, aDevice));
    21702170    if (it != mHDData->mAttachments.end())
    21712171    {
     
    21892189    AutoWriteLock hdLock (hd);
    21902190
    2191     if (std::find_if (mHDData->mAttachments.begin(),
    2192                       mHDData->mAttachments.end(),
    2193                       HardDiskAttachment::RefersTo (hd)) !=
    2194            mHDData->mAttachments.end())
     2191    if (std::find_if(mHDData->mAttachments.begin(),
     2192                     mHDData->mAttachments.end(),
     2193                     HardDiskAttachment::RefersTo (hd))
     2194         != mHDData->mAttachments.end())
    21952195    {
    21962196        return setError(VBOX_E_OBJECT_IN_USE,
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