VirtualBox

Ignore:
Timestamp:
Feb 23, 2023 4:24:07 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322. Cleaning direct COM usage from UIVMInformationDialog files.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp

    r98606 r98705  
    5151#include "VBoxUtils.h"
    5252
    53 
    54 /* COM includes: */
    55 #include "COMEnums.h"
    56 #include "CMachine.h"
    57 #include "CConsole.h"
    58 #include "CSystemProperties.h"
    59 #include "CMachineDebugger.h"
    60 #include "CDisplay.h"
    61 #include "CStorageController.h"
    62 #include "CMediumAttachment.h"
    63 #include "CNetworkAdapter.h"
    64 #include "CVRDEServerInfo.h"
    65 
    6653/* Other VBox includes: */
    6754#include <iprt/time.h>
     
    175162    AssertPtrReturnVoid(m_pMachine);
    176163
    177     /// @todo to be encapsulated in UIMachine soon
    178     CMachine comMachine = m_pMachine->uisession()->machine();
    179     m_uMachineId = comMachine.GetId();
    180     m_strMachineName = comMachine.GetName();
    181 
     164    m_uMachineId = uiCommon().managedVMUuid();
     165    m_strMachineName = m_pMachine->machineName();
    182166#ifdef VBOX_WS_MAC
    183167    /* No window-icon on Mac OS X, because it acts as proxy icon which isn't necessary here. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h

    r98606 r98705  
    3939#include "QIWithRetranslateUI.h"
    4040
    41 /* COM includes: */
    42 #include "COMEnums.h"
    43 #include "CSession.h"
    4441
    4542/* Forward declarations: */
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