ports/devel/py-sip/files/patch-hg_6b09a6d578e8
Tobias C. Berner aa9ba55255 Update py-sip to 4.19.2, py-qt4 to 4.12 and py-qt5 to 5.7.1
* This is mostly based on the work by Adriaan de Groot <groot@kde.org> in our development repo.

PR:		217305
PR:		218539
Submitted by:	Adriaan de Groot <groot@kde.org>
Reviewed by:	rakuco, mat
Approved by:	rakuco (mentor)
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D9771
2017-04-30 10:07:23 +00:00

20 lines
713 B
Text

Fix a regression so that a shadow class is not generated if there is a private
dtor.
https://www.riverbankcomputing.com/hg/sip/rev/6b09a6d578e8
diff -r 6209a625ac87 -r 6b09a6d578e8 sipgen/transform.c
--- sipgen/transform.c Thu Mar 30 09:43:04 2017 +0100
+++ sipgen/transform.c Sun Apr 02 11:49:58 2017 +0100
@@ -273,7 +273,7 @@
for (cd = pt->classes; cd != NULL; cd = cd->next)
if (cd->iff->type == class_iface)
{
- if (needsShadow(cd) && !isIncomplete(cd) && canCreate(cd))
+ if (needsShadow(cd) && !isIncomplete(cd) && !isPrivateDtor(cd) && canCreate(cd))
setHasShadow(cd);
/* Get the list of visible Python member functions. */