Changeset 106515 in vbox for trunk/src/VBox/Main/include/ovfreader.h
- Timestamp:
- Oct 20, 2024 2:00:07 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ovfreader.h
r106061 r106515 532 532 RTCString itemName; 533 533 534 virtual const RTCString &_getItemName()534 virtual const RTCString &_getItemName() 535 535 { 536 536 return itemName; … … 560 560 } 561 561 562 /* There is no copying of this vector. We'd need something like shared_ptr for that. */ 562 /* We only support copying if the vector is empty, we'd need something like 563 shared_ptr for dealing with a populated list. (Problem found by VS 2022.) */ 564 HardwareItemVector(const HardwareItemVector &a_rThat) 565 : std::vector<VirtualHardwareItem *>() 566 { 567 Assert(a_rThat.begin() == a_rThat.end()); 568 } 569 563 570 private: 564 HardwareItemVector(const VirtualSystem &); 565 571 #if RT_CPLUSPLUS_PREREQ(201100) /* VC2022: No copy assignment operator (see copy constructor). */ 572 HardwareItemVector &operator=(const HardwareItemVector &) = delete; 573 #else 574 HardwareItemVector &operator=(const HardwareItemVector &); 575 #endif 566 576 }; 567 577 … … 667 677 668 678 VirtualSystem() 669 : cimos(CIMOSType_CIMOS_Unknown), 670 ullMemorySize(0), 671 cCPUs(1), 672 fHasFloppyDrive(false), 673 fHasCdromDrive(false), 674 fHasUsbController(false), 675 pelmVBoxMachine(NULL) 676 { 677 } 679 : cimos(CIMOSType_CIMOS_Unknown) 680 , ullMemorySize(0) 681 , cCPUs(1) 682 , fHasFloppyDrive(false) 683 , fHasCdromDrive(false) 684 , fHasUsbController(false) 685 , pelmVBoxMachine(NULL) 686 { 687 } 688 689 #if RT_CPLUSPLUS_PREREQ(201100) /* VC2022: Excplit default copy constructor and copy assignment operator to avoid warnings. */ 690 /* Note! HardwareItemVector only allow copying if it's empty. */ 691 VirtualSystem(VirtualSystem const &) = default; 692 VirtualSystem &operator=(VirtualSystem const &) = delete; 693 #endif 678 694 }; 679 695
Note:
See TracChangeset
for help on using the changeset viewer.