VirtualBox

Ignore:
Timestamp:
Feb 12, 2009 1:19:37 PM (16 years ago)
Author:
vboxsync
Message:

#3551: “Main: Replace remaining collections with safe arrays”

  • Replace IProgressCollection
File:
1 edited

Legend:

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

    r16560 r16707  
    676676}
    677677
    678 STDMETHODIMP VirtualBox::COMGETTER(ProgressOperations) (IProgressCollection **aOperations)
     678STDMETHODIMP VirtualBox::COMGETTER(ProgressOperations) (ComSafeArrayOut (IProgress *, aOperations))
    679679{
    680680    CheckComArgOutSafeArrayPointerValid(aOperations);
     
    682682    AutoCaller autoCaller (this);
    683683    CheckComRCReturnRC (autoCaller.rc());
    684 
    685     ComObjPtr <ProgressCollection> collection;
    686     collection.createObject();
    687684
    688685    /* protect mProgressOperations */
    689686    AutoReadLock safeLock (mSafeLock);
    690687
    691     collection->init (mData.mProgressOperations);
    692     collection.queryInterfaceTo (aOperations);
     688    SafeIfaceArray <IProgress> progress (mData.mProgressOperations);
     689    progress.detachTo (ComSafeArrayOutArg (aOperations));
    693690
    694691    return S_OK;
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