VirtualBox

Changeset 55423 in vbox


Ignore:
Timestamp:
Apr 24, 2015 2:17:57 PM (10 years ago)
Author:
vboxsync
Message:

No unique_ptr (yet).

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r55422 r55423  
    2727#include "AutoCaller.h"
    2828
    29 #include <memory>    /* For unique_ptr, seee #7179. */
     29#include <memory>           /* For auto_ptr (deprecated) / unique_ptr, seee #7179. */
    3030
    3131#include <iprt/dir.h>
     
    328328            pRecvCtx->mFormat   = aFormat;
    329329
    330             std::unique_ptr <RecvDataTask> pTask(new RecvDataTask(this, pRecvCtx));
     330            std::auto_ptr <RecvDataTask> pTask(new RecvDataTask(this, pRecvCtx));
    331331            AssertReturn(pTask->isOk(), pTask->getRC());
    332332
     
    700700    LogFlowFunc(("pvUser=%p\n", pvUser));
    701701
    702     std::unique_ptr<RecvDataTask> pTask(static_cast<RecvDataTask*>(pvUser));
     702    std::auto_ptr<RecvDataTask> pTask(static_cast<RecvDataTask*>(pvUser));
    703703    AssertPtr(pTask.get());
    704704
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r55422 r55423  
    2727#include "AutoCaller.h"
    2828
    29 #include <algorithm> /* For std::find(). */
    30 #include <memory>    /* For unique_ptr, see #7179. */
     29#include <algorithm>        /* For std::find(). */
     30#include <memory>           /* For auto_ptr (deprecated) / unique_ptr, seee #7179. */
    3131
    3232#include <iprt/file.h>
     
    485485    LogFlowFunc(("pvUser=%p\n", pvUser));
    486486
    487     std::unique_ptr<SendDataTask> pTask(static_cast<SendDataTask*>(pvUser));
     487    std::auto_ptr<SendDataTask> pTask(static_cast<SendDataTask*>(pvUser));
    488488    AssertPtr(pTask.get());
    489489
     
    544544            pSendCtx->mData     = aData;
    545545
    546             std::unique_ptr<SendDataTask> pTask(new SendDataTask(this, pSendCtx));
     546            std::auto_ptr<SendDataTask> pTask(new SendDataTask(this, pSendCtx));
    547547            AssertReturn(pTask->isOk(), pTask->getRC());
    548548
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