VirtualBox

Changeset 57065 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 24, 2015 9:39:19 AM (9 years ago)
Author:
vboxsync
Message:

Main: in the macro declaring empty constructor/destructor, use a virtual destructor to play safe regarding object freeing in case someone is doing tricks with supertypes etc.

File:
1 edited

Legend:

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

    r55960 r57065  
    55
    66/*
    7  * Copyright (C) 2006-2014 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    528528 *  @param      cls     class to declare a ctor and dtor for
    529529 */
    530 #define DECLARE_EMPTY_CTOR_DTOR(cls) cls(); ~cls();
     530#define DECLARE_EMPTY_CTOR_DTOR(cls) cls(); virtual ~cls();
    531531
    532532/**
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