mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Add virtual dtor for DC classes
This commit is contained in:
@@ -1072,11 +1072,12 @@ private:
|
||||
{CLASS}& operator=(const {CLASS}&);""".format(CLASS=self.name))
|
||||
self.addItem(wig)
|
||||
|
||||
def addDtor(self, prot='protected'):
|
||||
def addDtor(self, prot='protected', isVirtual=False):
|
||||
# add declaration of a destructor to this class
|
||||
virtual = 'virtual ' if isVirtual else ''
|
||||
wig = WigCode("""\
|
||||
{PROT}:
|
||||
~{CLASS}();""".format(CLASS=self.name, PROT=prot))
|
||||
{VIRTUAL}~{CLASS}();""".format(VIRTUAL=virtual, CLASS=self.name, PROT=prot))
|
||||
self.addItem(wig)
|
||||
|
||||
def addDefaultCtor(self, prot='protected'):
|
||||
|
||||
Reference in New Issue
Block a user