Changeset 37547 in vbox
- Timestamp:
- Jun 17, 2011 2:34:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/com/list.h (modified) (1 diff)
-
src/VBox/Main/src-server/MachineImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/list.h
r37545 r37547 196 196 }; 197 197 198 template <typename T> RTCList<T> SafeArrayToRTCList(ComSafeArrayIn(T, other), T* = 0)199 {200 com::SafeArray<T> sfaOther(ComSafeArrayInArg(other));201 RTCList<T> list(sfaOther.size());202 for (size_t i = 0; i < sfaOther.size(); ++i)203 list.append(sfaOther[i]);204 return list;205 }198 //template <typename T> RTCList<T> SafeArrayToRTCList(ComSafeArrayIn(T, other), T* = 0) 199 //{ 200 // com::SafeArray<T> sfaOther(ComSafeArrayInArg(other)); 201 // RTCList<T> list(sfaOther.size()); 202 // for (size_t i = 0; i < sfaOther.size(); ++i) 203 // list.append(sfaOther[i]); 204 // return list; 205 //} 206 206 207 207 #endif /* !___VBox_com_list_h */ -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r37532 r37547 6084 6084 RTCList<CloneOptions_T> optList; 6085 6085 if (options != NULL) 6086 optList = SafeArrayToRTCList<CloneOptions_T>(ComSafeArrayInArg(options)); 6086 { 6087 com::SafeArray<CloneOptions_T> sfaOpts(ComSafeArrayInArg(options)); 6088 for (size_t i = 0; i < sfaOpts.size(); ++i) 6089 optList.append(sfaOpts[i]); 6090 // optList = SafeArrayToRTCList<CloneOptions_T>(ComSafeArrayInArg(options)); 6091 } 6087 6092 AssertReturn(!optList.contains(CloneOptions_Link), E_NOTIMPL); 6088 6093 AssertReturn(!(optList.contains(CloneOptions_KeepAllMACs) && optList.contains(CloneOptions_KeepNATMACs)), E_FAIL);
Note:
See TracChangeset
for help on using the changeset viewer.

