VirtualBox

Changeset 78761 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 26, 2019 4:31:12 AM (6 years ago)
Author:
vboxsync
Message:

Main/Machine::moveTo: Some cleanups and a lot of @todo's. bugref:8345

File:
1 edited

Legend:

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

    r76562 r78761  
    6868    struct ErrorInfoItem
    6969    {
    70         ErrorInfoItem(HRESULT aCode, const char* aDescription):
    71             m_code(aCode),
    72             m_description(aDescription == NULL ? "There is no description" : aDescription)
     70        ErrorInfoItem(HRESULT aCode, const char* aDescription)
     71            : m_code(aCode)
     72            , m_description(aDescription == NULL ? "There is no description" : aDescription)
    7373        {
    7474        }
     
    8080    };
    8181
    82     RTCList<MEDIUMTASKCHAINMOVE>    llMedias;
    83     RTCList<SAVESTATETASKMOVE>      llSaveStateFiles;
    84     std::map<Utf8Str, MEDIUMTASKMOVE>     finalMediumsMap;
    85     std::map<Utf8Str, SAVESTATETASKMOVE>  finalSaveStateFilesMap;
    86     std::map<VBoxFolder_t, Utf8Str> vmFolders;
    87     std::list<ErrorInfoItem> errorsList;
     82    /** @todo r=bird: Why no m_ prefixes here? */
     83    RTCList<MEDIUMTASKCHAINMOVE>            llMedias;
     84    RTCList<SAVESTATETASKMOVE>              llSaveStateFiles;
     85    std::map<Utf8Str, MEDIUMTASKMOVE>       finalMediumsMap;
     86    std::map<Utf8Str, SAVESTATETASKMOVE>    finalSaveStateFilesMap;
     87    std::map<VBoxFolder_t, Utf8Str>         vmFolders;
     88    std::list<ErrorInfoItem>                errorsList;
    8889
    8990    ComObjPtr<Machine>  m_pMachine;
     
    9495    Utf8Str             m_targetPath;
    9596    Utf8Str             m_type;
    96     HRESULT             result;
     97    HRESULT             result; /**< @todo r=bird: Why no m_ prefix here?    */
    9798
    9899public:
     
    101102                  const com::Utf8Str &aType,
    102103                  ComObjPtr<Progress> &aProgress)
    103       : ThreadTask("TaskMoveVM"),
    104         m_pMachine(aMachine),
    105         m_pProgress(aProgress),
    106         m_targetPath(aTargetPath),
    107         m_type (aType.isEmpty() == true ? "basic" : aType),
    108         result(S_OK)
     104        : ThreadTask("TaskMoveVM")
     105        , m_pMachine(aMachine)
     106        , m_pProgress(aProgress)
     107        , m_targetPath(aTargetPath)
     108        , m_type(aType.isEmpty() ? "basic" : aType)
     109        , result(S_OK)
    109110    {
    110111    }
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