Changeset 32718 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
- Timestamp:
- Sep 23, 2010 12:57:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r32701 r32718 248 248 pszAbsFilePath = RTPathAbsDup(strOvfFilename.c_str()); 249 249 ComPtr<IProgress> progressRead; 250 CHECK_ERROR_BREAK(pAppliance, Read(Bstr(pszAbsFilePath), progressRead.asOutParam())); 250 CHECK_ERROR_BREAK(pAppliance, Read(Bstr(pszAbsFilePath).raw(), 251 progressRead.asOutParam())); 251 252 RTStrFree(pszAbsFilePath); 252 253 … … 831 832 ComPtr<IMachine> machine; 832 833 /* assume it's a UUID */ 833 rc = a->virtualBox->GetMachine(Bstr(strMachine), machine.asOutParam()); 834 rc = a->virtualBox->GetMachine(Bstr(strMachine).raw(), 835 machine.asOutParam()); 834 836 if (FAILED(rc) || !machine) 835 837 { 836 838 /* must be a name */ 837 CHECK_ERROR_BREAK(a->virtualBox, FindMachine(Bstr(strMachine), machine.asOutParam())); 839 CHECK_ERROR_BREAK(a->virtualBox, FindMachine(Bstr(strMachine).raw(), 840 machine.asOutParam())); 838 841 } 839 842 … … 910 913 { 911 914 if (itD->first == "product") 912 pVSD->AddDescription (VirtualSystemDescriptionType_Product, Bstr(itD->second), Bstr(itD->second)); 915 pVSD->AddDescription(VirtualSystemDescriptionType_Product, 916 Bstr(itD->second).raw(), 917 Bstr(itD->second).raw()); 913 918 else if (itD->first == "producturl") 914 pVSD->AddDescription (VirtualSystemDescriptionType_ProductUrl, Bstr(itD->second), Bstr(itD->second)); 919 pVSD->AddDescription(VirtualSystemDescriptionType_ProductUrl, 920 Bstr(itD->second).raw(), 921 Bstr(itD->second).raw()); 915 922 else if (itD->first == "vendor") 916 pVSD->AddDescription (VirtualSystemDescriptionType_Vendor, Bstr(itD->second), Bstr(itD->second)); 923 pVSD->AddDescription(VirtualSystemDescriptionType_Vendor, 924 Bstr(itD->second).raw(), 925 Bstr(itD->second).raw()); 917 926 else if (itD->first == "vendorurl") 918 pVSD->AddDescription (VirtualSystemDescriptionType_VendorUrl, Bstr(itD->second), Bstr(itD->second)); 927 pVSD->AddDescription(VirtualSystemDescriptionType_VendorUrl, 928 Bstr(itD->second).raw(), 929 Bstr(itD->second).raw()); 919 930 else if (itD->first == "version") 920 pVSD->AddDescription (VirtualSystemDescriptionType_Version, Bstr(itD->second), Bstr(itD->second)); 931 pVSD->AddDescription(VirtualSystemDescriptionType_Version, 932 Bstr(itD->second).raw(), 933 Bstr(itD->second).raw()); 921 934 else if (itD->first == "eula") 922 pVSD->AddDescription (VirtualSystemDescriptionType_License, Bstr(itD->second), Bstr(itD->second)); 935 pVSD->AddDescription(VirtualSystemDescriptionType_License, 936 Bstr(itD->second).raw(), 937 Bstr(itD->second).raw()); 923 938 else if (itD->first == "eulafile") 924 939 { … … 930 945 { 931 946 Bstr bstrContent((char*)pvFile); 932 pVSD->AddDescription(VirtualSystemDescriptionType_License, bstrContent, bstrContent); 947 pVSD->AddDescription(VirtualSystemDescriptionType_License, 948 bstrContent.raw(), 949 bstrContent.raw()); 933 950 RTFileReadAllFree(pvFile, cbFile); 934 951 } … … 955 972 else 956 973 pszAbsFilePath = RTPathAbsDup(strOutputFile.c_str()); 957 CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat), fManifest, Bstr(pszAbsFilePath), progress.asOutParam())); 974 CHECK_ERROR_BREAK(pAppliance, Write(Bstr(strOvfFormat).raw(), 975 fManifest, 976 Bstr(pszAbsFilePath).raw(), 977 progress.asOutParam())); 958 978 RTStrFree(pszAbsFilePath); 959 979
Note:
See TracChangeset
for help on using the changeset viewer.