Changeset 86065 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 8, 2020 11:50:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp
r82968 r86065 442 442 bool UIMediumItemHD::releaseFrom(CMachine comMachine) 443 443 { 444 /* Was medium released from at least one attachment? */ 445 bool fAtLeastOneRelease = false; 446 444 447 /* Enumerate attachments: */ 445 448 CMediumAttachmentVector attachments = comMachine.GetMediumAttachments(); … … 467 470 return false; 468 471 } 469 470 /* Return success: */ 471 return true; 472 } 473 474 /* False by default: */ 475 return false; 472 else 473 fAtLeastOneRelease = true; 474 } 475 476 /* Return whether there was at least one release: */ 477 return fAtLeastOneRelease; 476 478 } 477 479 … … 561 563 bool UIMediumItemCD::releaseFrom(CMachine comMachine) 562 564 { 565 /* Was medium released from at least one attachment? */ 566 bool fAtLeastOneRelease = false; 567 563 568 /* Enumerate attachments: */ 564 569 CMediumAttachmentVector attachments = comMachine.GetMediumAttachments(); … … 581 586 return false; 582 587 } 583 584 /* Return success: */ 585 return true; 586 } 587 588 /* Return failure: */ 589 return false; 588 else 589 fAtLeastOneRelease = true; 590 } 591 592 /* Return whether there was at least one release: */ 593 return fAtLeastOneRelease; 590 594 } 591 595 … … 628 632 bool UIMediumItemFD::releaseFrom(CMachine comMachine) 629 633 { 634 /* Was medium released from at least one attachment? */ 635 bool fAtLeastOneRelease = false; 636 630 637 /* Enumerate attachments: */ 631 638 CMediumAttachmentVector attachments = comMachine.GetMediumAttachments(); … … 648 655 return false; 649 656 } 650 651 /* Return success: */ 652 return true; 653 } 654 655 /* Return failure: */ 656 return false; 657 } 657 else 658 fAtLeastOneRelease = true; 659 } 660 661 /* Return whether there was at least one release: */ 662 return fAtLeastOneRelease; 663 }
Note:
See TracChangeset
for help on using the changeset viewer.