Skip to content

Commit a268782

Browse files
committed
Use Py_REFCNT instead of ob_refcnt in generated code
- ob_refcnt is not guaranteed to be there
1 parent 89c03c9 commit a268782

File tree

188 files changed

+46536
-46536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+46536
-46536
lines changed

generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.cpp

Lines changed: 231 additions & 231 deletions
Large diffs are not rendered by default.

generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.cpp

Lines changed: 113 additions & 113 deletions
Large diffs are not rendered by default.

generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.cpp

Lines changed: 102 additions & 102 deletions
Large diffs are not rendered by default.

generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core3.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ PythonQtShell_QVariantAnimation::~PythonQtShell_QVariantAnimation() {
270270
}
271271
void PythonQtShell_QVariantAnimation::childEvent(QChildEvent* arg__1)
272272
{
273-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
273+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
274274
static PyObject* name = PyString_FromString("childEvent");
275275
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
276276
if (obj) {
@@ -289,7 +289,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
289289
}
290290
void PythonQtShell_QVariantAnimation::customEvent(QEvent* arg__1)
291291
{
292-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
292+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
293293
static PyObject* name = PyString_FromString("customEvent");
294294
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
295295
if (obj) {
@@ -308,7 +308,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
308308
}
309309
int PythonQtShell_QVariantAnimation::duration() const
310310
{
311-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
311+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
312312
static PyObject* name = PyString_FromString("duration");
313313
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
314314
if (obj) {
@@ -338,7 +338,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
338338
}
339339
bool PythonQtShell_QVariantAnimation::event(QEvent* event0)
340340
{
341-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
341+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
342342
static PyObject* name = PyString_FromString("event");
343343
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
344344
if (obj) {
@@ -368,7 +368,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
368368
}
369369
bool PythonQtShell_QVariantAnimation::eventFilter(QObject* arg__1, QEvent* arg__2)
370370
{
371-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
371+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
372372
static PyObject* name = PyString_FromString("eventFilter");
373373
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
374374
if (obj) {
@@ -398,7 +398,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
398398
}
399399
QVariant PythonQtShell_QVariantAnimation::interpolated(const QVariant& from0, const QVariant& to1, qreal progress2) const
400400
{
401-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
401+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
402402
static PyObject* name = PyString_FromString("interpolated");
403403
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
404404
if (obj) {
@@ -428,7 +428,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
428428
}
429429
void PythonQtShell_QVariantAnimation::timerEvent(QTimerEvent* arg__1)
430430
{
431-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
431+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
432432
static PyObject* name = PyString_FromString("timerEvent");
433433
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
434434
if (obj) {
@@ -447,7 +447,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
447447
}
448448
void PythonQtShell_QVariantAnimation::updateCurrentTime(int arg__1)
449449
{
450-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
450+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
451451
static PyObject* name = PyString_FromString("updateCurrentTime");
452452
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
453453
if (obj) {
@@ -466,7 +466,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
466466
}
467467
void PythonQtShell_QVariantAnimation::updateCurrentValue(const QVariant& value0)
468468
{
469-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
469+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
470470
static PyObject* name = PyString_FromString("updateCurrentValue");
471471
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
472472
if (obj) {
@@ -485,7 +485,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
485485
}
486486
void PythonQtShell_QVariantAnimation::updateDirection(QAbstractAnimation::Direction direction0)
487487
{
488-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
488+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
489489
static PyObject* name = PyString_FromString("updateDirection");
490490
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
491491
if (obj) {
@@ -504,7 +504,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
504504
}
505505
void PythonQtShell_QVariantAnimation::updateState(QAbstractAnimation::State newState0, QAbstractAnimation::State oldState1)
506506
{
507-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
507+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
508508
static PyObject* name = PyString_FromString("updateState");
509509
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
510510
if (obj) {
@@ -649,7 +649,7 @@ PythonQtShell_QXmlStreamEntityResolver::~PythonQtShell_QXmlStreamEntityResolver(
649649
}
650650
QString PythonQtShell_QXmlStreamEntityResolver::resolveEntity(const QString& publicId0, const QString& systemId1)
651651
{
652-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
652+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
653653
static PyObject* name = PyString_FromString("resolveEntity");
654654
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
655655
if (obj) {
@@ -679,7 +679,7 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
679679
}
680680
QString PythonQtShell_QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString& name0)
681681
{
682-
if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
682+
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
683683
static PyObject* name = PyString_FromString("resolveUndeclaredEntity");
684684
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
685685
if (obj) {

0 commit comments

Comments
 (0)