Changeset 21079 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Jun 30, 2009 3:59:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r21077 r21079 26 26 #include <iprt/file.h> 27 27 #include <iprt/s3.h> 28 #include "iprt/xml_cpp.h" 28 29 29 30 #include <VBox/param.h> … … 39 40 40 41 #include "Logging.h" 41 42 #include "VBox/xml.h"43 42 44 43 using namespace std; … … 234 233 // 235 234 //////////////////////////////////////////////////////////////////////////////// 236 237 static Utf8Str stripFilename(const Utf8Str &strFile)238 {239 Utf8Str str2(strFile);240 RTPathStripFilename(str2.mutableRaw());241 return str2;242 }243 235 244 236 static const struct … … 2246 2238 /* The disk image has to be on the same place as the OVF file. So 2247 2239 * strip the filename out of the full file path. */ 2248 Utf8Str strSrcDir = stripFilename(pAppliance->m->strPath); 2240 Utf8Str strSrcDir(pAppliance->m->strPath); 2241 strSrcDir.stripFilename(); 2249 2242 2250 2243 /* Iterate over all given disk images */ … … 3522 3515 const Utf8Str &strTargetFileNameOnly = pDiskEntry->strOvf; 3523 3516 // target path needs to be composed from where the output OVF is 3524 Utf8Str strTargetFilePath = stripFilename(m->strPath); 3517 Utf8Str strTargetFilePath(m->strPath); 3518 strTargetFilePath.stripFilename(); 3525 3519 strTargetFilePath.append("/"); 3526 3520 strTargetFilePath.append(strTargetFileNameOnly); … … 3721 3715 const Utf8Str &strTargetFileNameOnly = (*itH)->strOvf; 3722 3716 /* Target path needs to be composed from where the output OVF is */ 3723 Utf8Str strTargetFilePath = stripFilename(m->strPath); 3717 Utf8Str strTargetFilePath(m->strPath); 3718 strTargetFilePath.stripFilename(); 3724 3719 strTargetFilePath.append("/"); 3725 3720 strTargetFilePath.append(strTargetFileNameOnly); … … 4736 4731 4737 4732 Utf8Str strTargetVmdkName(bstrName); 4738 RTPathStripExt(strTargetVmdkName.mutableRaw());4733 strTargetVmdkName.stripExt(); 4739 4734 strTargetVmdkName.append(".vmdk"); 4740 4735
Note:
See TracChangeset
for help on using the changeset viewer.