Ensure sip knows that wxLog has a default ctor and a dtor

This commit is contained in:
Robin Dunn
2019-08-13 15:25:40 -07:00
parent 1fa31ac042
commit b430a16ec3
2 changed files with 4 additions and 1 deletions

View File

@@ -75,6 +75,9 @@ def run():
c = module.find('wxLog')
assert isinstance(c, etgtools.ClassDef)
c.addPrivateCopyCtor()
c.addDefaultCtor('public')
c.addDtor('public', isVirtual=True)
c.find('SetActiveTarget').transferBack = True
c.find('SetActiveTarget.logtarget').transfer = True

View File

@@ -1090,7 +1090,7 @@ class ClassDef(BaseDef):
def addDefaultCtor(self, prot='protected'):
# add declaration of a copy constructor to this class
# add declaration of a default constructor to this class
wig = WigCode("""\
{PROT}:
{CLASS}();""".format(CLASS=self.name, PROT=prot))