mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Ensure sip knows that wxLog has a default ctor and a dtor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user