summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index e2ff0ba..232e3dc 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -158,10 +158,8 @@ builtin___build_class__(PyObject *self, PyObject *args, PyObject *kwds)
cls = PyEval_CallObjectWithKeywords(meta, margs, mkw);
Py_DECREF(margs);
}
- if (cls != NULL && PyCell_Check(cell)) {
- Py_INCREF(cls);
- PyCell_SET(cell, cls);
- }
+ if (cls != NULL && PyCell_Check(cell))
+ PyCell_Set(cell, cls);
Py_DECREF(cell);
}
Py_DECREF(ns);
e54da4c33ae50fad9aab21457a9219f94&id2=5107b4c5e670b7357b9eb0f8f81f9810eaa9647b'>diff)downloadQt-c6dbce5e54da4c33ae50fad9aab21457a9219f94.zip
Qt-c6dbce5e54da4c33ae50fad9aab21457a9219f94.tar.gz
Qt-c6dbce5e54da4c33ae50fad9aab21457a9219f94.tar.bz2
Optimization: Use internal QGraphicsItemPrivate::setItemParentHelper()
This brings the "data" property inline with the "children" property. Improves the declarative/creation/itemtree_qml test by 13%.
Diffstat (limited to 'src/gui/dialogs/qprintdialog_mac.mm')