VirtualBox

Ignore:
Timestamp:
Oct 19, 2009 5:48:04 PM (15 years ago)
Author:
vboxsync
Message:

Main/MediumAttachment: change return value of Controller getter to return a reference to the StorageController instead of just the name

File:
1 edited

Legend:

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

    r23397 r23880  
    5858HRESULT MediumAttachment::init(Machine *aParent,
    5959                               Medium *aMedium,
    60                                CBSTR aController,
     60                               StorageController *aController,
    6161                               LONG aPort,
    6262                               LONG aDevice,
     
    180180}
    181181
    182 STDMETHODIMP MediumAttachment::COMGETTER(Controller)(BSTR *aController)
     182STDMETHODIMP MediumAttachment::COMGETTER(Controller)(IStorageController **aController)
    183183{
    184184    LogFlowThisFuncEnter();
     
    190190
    191191    /* m->controller is constant during life time, no need to lock */
    192     m->controller.cloneTo(aController);
     192    m->controller.queryInterfaceTo(aController);
    193193
    194194    LogFlowThisFuncLeave();
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