Changeset 74386 in vbox for trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp
- Timestamp:
- Sep 20, 2018 3:46:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestArrayBase.cpp
r74263 r74386 90 90 *********************************************************************************************************************************/ 91 91 92 RTCRestObjectBase *RTCRestArrayBase::baseClone() const 93 { 94 RTCRestArrayBase *pClone = createClone(); 95 if (pClone) 96 { 97 int rc = pClone->copyArrayWorker(*this, false /*fThrow*/); 98 if (RT_SUCCESS(rc)) 99 return pClone; 100 delete pClone; 101 } 102 return NULL; 103 } 104 105 92 106 int RTCRestArrayBase::resetToDefault() 93 107 { … … 458 472 { 459 473 int rc; 460 RTCRestObjectBase *pValueCopy = createValueCopy(&a_rValue);474 RTCRestObjectBase *pValueCopy = a_rValue.baseClone(); 461 475 if (pValueCopy) 462 476 {
Note:
See TracChangeset
for help on using the changeset viewer.