VirtualBox

Ignore:
Timestamp:
Apr 8, 2016 9:04:44 AM (9 years ago)
Author:
vboxsync
Message:

bugref:7179. Removed auto_ptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r58132 r60389  
    16111611        else
    16121612        {
    1613             std::auto_ptr<Service> apService;
     1613            Service *apService = NULL;
    16141614            /* No exceptions may propagate outside. */
    16151615            try {
    1616                 apService = std::auto_ptr<Service>(new Service(pTable->pHelpers));
     1616                apService = new Service(pTable->pHelpers);
    16171617            } catch (int rcThrown) {
    16181618                rc = rcThrown;
     
    16401640
    16411641                /* Service specific initialization. */
    1642                 pTable->pvService = apService.release();
     1642                pTable->pvService = apService;
    16431643            }
    16441644        }
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