VirtualBox

Changeset 106516 in vbox for trunk/src


Ignore:
Timestamp:
Oct 20, 2024 2:01:39 AM (6 weeks ago)
Author:
vboxsync
Message:

Main,settings.h: Workarounds for a handful warnings about default copy constructors & default copy assignment operators due to user defined destructors. jiraref:VBP-1171

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r106061 r106516  
    10611061
    10621062    GuestToolboxStreamBlock(void);
    1063 
    10641063    virtual ~GuestToolboxStreamBlock(void);
     1064
     1065#if RT_CPLUSPLUS_PREREQ(201100) /* VC2022: Excplit default copy constructor and copy assignment operator to avoid warnings. */
     1066    GuestToolboxStreamBlock(GuestToolboxStreamBlock const &) = default;
     1067    GuestToolboxStreamBlock &operator=(GuestToolboxStreamBlock const &) = default;
     1068#endif
    10651069
    10661070public:
  • trunk/src/VBox/Main/include/MachineImpl.h

    r106061 r106516  
    299299        HWData();
    300300        ~HWData();
     301#if RT_CPLUSPLUS_PREREQ(201100) /* VC2022: Excplit default copy constructor and copy assignment operator to avoid warnings. */
     302        HWData(HWData const &) = default;
     303        HWData &operator=(HWData const &) = default;
     304#endif
    301305
    302306        Bstr                mHWVersion;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette