VirtualBox

Changeset 79943 in vbox for trunk


Ignore:
Timestamp:
Jul 23, 2019 11:33:58 PM (6 years ago)
Author:
vboxsync
Message:

OCI: G/c useless c_str() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r79942 r79943  
    535535    ComPtr<IProgress> progress;
    536536    CHECK_ERROR2_RET(hrc, oCloudClient,
    537                      GetInstanceInfo(Bstr(strInstanceId.c_str()).raw(), instanceDescription, progress.asOutParam()),
     537                     GetInstanceInfo(Bstr(strInstanceId).raw(), instanceDescription, progress.asOutParam()),
    538538                     RTEXITCODE_FAILURE);
    539539
     
    638638    ComPtr<IProgress> progress;
    639639    CHECK_ERROR2_RET(hrc, oCloudClient,
    640                      StartInstance(Bstr(strInstanceId.c_str()).raw(), progress.asOutParam()),
     640                     StartInstance(Bstr(strInstanceId).raw(), progress.asOutParam()),
    641641                     RTEXITCODE_FAILURE);
    642642    hrc = showProgress(progress);
     
    697697    ComPtr<IProgress> progress;
    698698    CHECK_ERROR2_RET(hrc, oCloudClient,
    699                      PauseInstance(Bstr(strInstanceId.c_str()).raw(), progress.asOutParam()),
     699                     PauseInstance(Bstr(strInstanceId).raw(), progress.asOutParam()),
    700700                     RTEXITCODE_FAILURE);
    701701    hrc = showProgress(progress);
     
    756756    ComPtr<IProgress> progress;
    757757    CHECK_ERROR2_RET(hrc, oCloudClient,
    758                      TerminateInstance(Bstr(strInstanceId.c_str()).raw(), progress.asOutParam()),
     758                     TerminateInstance(Bstr(strInstanceId).raw(), progress.asOutParam()),
    759759                     RTEXITCODE_FAILURE);
    760760    hrc = showProgress(progress);
     
    11111111    ComPtr<IProgress> progress;
    11121112    CHECK_ERROR2_RET(hrc, oCloudClient,
    1113                      ImportImage(Bstr(strImageId.c_str()).raw(), pVirtualBox, ComSafeArrayAsInParam(parameters), progress.asOutParam()),
     1113                     ImportImage(Bstr(strImageId).raw(), pVirtualBox, ComSafeArrayAsInParam(parameters), progress.asOutParam()),
    11141114                     RTEXITCODE_FAILURE);
    11151115    hrc = showProgress(progress);
     
    11751175    RTPrintf("Reply is in the form \'image property\' = \'value\'\n");
    11761176    CHECK_ERROR2_RET(hrc, oCloudClient,
    1177                      GetImageInfo(Bstr(strImageId.c_str()).raw(),
     1177                     GetImageInfo(Bstr(strImageId).raw(),
    11781178                                  infoArray.asOutParam(),
    11791179                                  pProgress.asOutParam()),
     
    12611261    ComPtr<IProgress> progress;
    12621262    CHECK_ERROR2_RET(hrc, oCloudClient,
    1263                      DeleteImage(Bstr(strImageId.c_str()).raw(), progress.asOutParam()),
     1263                     DeleteImage(Bstr(strImageId).raw(), progress.asOutParam()),
    12641264                     RTEXITCODE_FAILURE);
    12651265    hrc = showProgress(progress);
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