VirtualBox

Changeset 17200 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Feb 27, 2009 12:48:14 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43495
Message:

#3551: “Main: Replace remaining collections with safe arrays”
Take two. Convert HostDVDDriveCollection. This time for all plattforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r17193 r17200  
    55
    66/*
    7  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    17721772            ComPtr <IHost> host;
    17731773            CHECK_ERROR_BREAK (virtualBox, COMGETTER(Host)(host.asOutParam()));
    1774             ComPtr <IHostDVDDriveCollection> coll;
    1775             CHECK_ERROR_BREAK (host, COMGETTER(DVDDrives)(coll.asOutParam()));
     1774            SafeIfaceArray <IHostDVDDrive> coll;
     1775            CHECK_ERROR_BREAK (host, COMGETTER(DVDDrives)(ComSafeArrayAsOutParam(coll)));
    17761776            ComPtr <IHostDVDDrive> hostDrive;
    1777             rc = coll->FindByName (medium, hostDrive.asOutParam());
     1777            rc = host->FindHostDVDDrive (medium, hostDrive.asOutParam());
    17781778            if (SUCCEEDED (rc))
    17791779            {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette