Changeset 23909 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 20, 2009 3:50:06 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53711
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r23882 r23909 2743 2743 2744 2744 /* start with nothing found */ 2745 Bstr("").cloneTo(aValue);2745 Utf8Str strResult; 2746 2746 2747 2747 AutoReadLock alock (this); … … 2749 2749 settings::ExtraDataItemsMap::const_iterator it = mData->m_pMachineConfigFile->mapExtraDataItems.find(Utf8Str(aKey)); 2750 2750 if (it != mData->m_pMachineConfigFile->mapExtraDataItems.end()) 2751 {2752 2751 // found: 2753 const Utf8Str &strValue = it->second; 2754 strValue.cloneTo(aValue); 2755 } 2752 strResult = it->second; 2753 2754 /* return the result to caller (may be empty) */ 2755 strResult.cloneTo(aValue); 2756 2756 2757 2757 return S_OK; -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r23327 r23909 1607 1607 1608 1608 /* start with nothing found */ 1609 Bstr("").cloneTo(aValue);1609 Utf8Str strResult; 1610 1610 1611 1611 settings::ExtraDataItemsMap::const_iterator it = m->pMainConfigFile->mapExtraDataItems.find(Utf8Str(aKey)); 1612 1612 if (it != m->pMainConfigFile->mapExtraDataItems.end()) 1613 {1614 1613 // found: 1615 const Utf8Str &strValue = it->second; 1616 strValue.cloneTo(aValue); 1617 } 1614 strResult = it->second; 1615 1616 /* return the result to caller (may be empty) */ 1617 strResult.cloneTo(aValue); 1618 1618 1619 1619 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.