Changeset 79127 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 13, 2019 12:38:40 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131291
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r79044 r79127 392 392 393 393 /* Parse attachment: */ 394 parseAttachment(comAttachment); 394 QList<QUuid> result; 395 parseAttachment(comAttachment, result); 395 396 } 396 397 … … 401 402 402 403 /* Parse attachment: */ 403 parseAttachment(comAttachment); 404 QList<QUuid> result; 405 parseAttachment(comAttachment, result); 404 406 } 405 407 … … 410 412 411 413 /* Parse medium: */ 412 parseMedium(comMedium); 414 QList<QUuid> result; 415 parseMedium(comMedium, result); 413 416 } 414 417 … … 757 760 #else /* VBOX_GUI_WITH_NEW_MEDIA_EVENTS */ 758 761 759 QList<QUuid> UIMediumEnumerator::parseAttachment(CMediumAttachment &comAttachment) 760 { 761 /* Prepare result: */ 762 QList<QUuid> result; 763 762 void UIMediumEnumerator::parseAttachment(CMediumAttachment comAttachment, QList<QUuid> &result) 763 { 764 764 /* Make sure attachment is valid: */ 765 765 if (comAttachment.isNull()) … … 781 781 { 782 782 /* Parse medium: */ 783 result << parseMedium(comMedium);783 parseMedium(comMedium, result); 784 784 785 785 // WORKAROUND: … … 825 825 } 826 826 } 827 828 /* Return result: */ 829 return result; 830 } 831 832 QList<QUuid> UIMediumEnumerator::parseMedium(CMedium &comMedium) 833 { 834 /* Prepare result: */ 835 QList<QUuid> result; 836 827 } 828 829 void UIMediumEnumerator::parseMedium(CMedium comMedium, QList<QUuid> &result) 830 { 837 831 /* Make sure medium is valid: */ 838 832 if (comMedium.isNull()) … … 874 868 } 875 869 } 876 877 /* Return result: */878 return result;879 870 } 880 871 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h
r79043 r79127 183 183 const QList<QUuid> ¤tCMediumIDs); 184 184 #else /* VBOX_GUI_WITH_NEW_MEDIA_EVENTS */ 185 /** Parses incoming @a comAttachment. 186 * @returns a list of newly enumerated media IDs. */ 187 QList<QUuid> parseAttachment(CMediumAttachment &comAttachment); 188 /** Parses incoming @a comMedium. 189 * @returns a list of newly enumerated media IDs. */ 190 QList<QUuid> parseMedium(CMedium &comMedium); 185 /** Parses incoming @a comAttachment, enumerating the media it has attached. 186 * @param result Brings the list of previously enumerated media 187 * IDs to be appended with newly enumerated. */ 188 void parseAttachment(CMediumAttachment comAttachment, QList<QUuid> &result); 189 /** Parses incoming @a comMedium, enumerating the media it represents. 190 * @param result Brings the list of previously enumerated media 191 * IDs to be appended with newly enumerated. */ 192 void parseMedium(CMedium comMedium, QList<QUuid> &result); 191 193 #endif /* VBOX_GUI_WITH_NEW_MEDIA_EVENTS */ 192 194
Note:
See TracChangeset
for help on using the changeset viewer.