Skip to content

Commit af1633f

Browse files
jcfrmrbean-bremen
authored andcommitted
chore(generated_cpp_*): replace PyString_FromString with PyUnicode_FromString
Make Unicode creation explicit instead of relying on the compatibility macros in `PythonQtPythonInclude.h`. No functional change intended.
1 parent ac3419a commit af1633f

File tree

187 files changed

+46535
-46535
lines changed

Some content is hidden

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

187 files changed

+46535
-46535
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
@@ -271,7 +271,7 @@ PythonQtShell_QVariantAnimation::~PythonQtShell_QVariantAnimation() {
271271
void PythonQtShell_QVariantAnimation::childEvent(QChildEvent* arg__1)
272272
{
273273
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
274-
static PyObject* name = PyString_FromString("childEvent");
274+
static PyObject* name = PyUnicode_FromString("childEvent");
275275
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
276276
if (obj) {
277277
static const char* argumentList[] ={"" , "QChildEvent*"};
@@ -290,7 +290,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
290290
void PythonQtShell_QVariantAnimation::customEvent(QEvent* arg__1)
291291
{
292292
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
293-
static PyObject* name = PyString_FromString("customEvent");
293+
static PyObject* name = PyUnicode_FromString("customEvent");
294294
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
295295
if (obj) {
296296
static const char* argumentList[] ={"" , "QEvent*"};
@@ -309,7 +309,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
309309
int PythonQtShell_QVariantAnimation::duration() const
310310
{
311311
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
312-
static PyObject* name = PyString_FromString("duration");
312+
static PyObject* name = PyUnicode_FromString("duration");
313313
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
314314
if (obj) {
315315
static const char* argumentList[] ={"int"};
@@ -339,7 +339,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
339339
bool PythonQtShell_QVariantAnimation::event(QEvent* event0)
340340
{
341341
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
342-
static PyObject* name = PyString_FromString("event");
342+
static PyObject* name = PyUnicode_FromString("event");
343343
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
344344
if (obj) {
345345
static const char* argumentList[] ={"bool" , "QEvent*"};
@@ -369,7 +369,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
369369
bool PythonQtShell_QVariantAnimation::eventFilter(QObject* arg__1, QEvent* arg__2)
370370
{
371371
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
372-
static PyObject* name = PyString_FromString("eventFilter");
372+
static PyObject* name = PyUnicode_FromString("eventFilter");
373373
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
374374
if (obj) {
375375
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
@@ -399,7 +399,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
399399
QVariant PythonQtShell_QVariantAnimation::interpolated(const QVariant& from0, const QVariant& to1, qreal progress2) const
400400
{
401401
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
402-
static PyObject* name = PyString_FromString("interpolated");
402+
static PyObject* name = PyUnicode_FromString("interpolated");
403403
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
404404
if (obj) {
405405
static const char* argumentList[] ={"QVariant" , "const QVariant&" , "const QVariant&" , "qreal"};
@@ -429,7 +429,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
429429
void PythonQtShell_QVariantAnimation::timerEvent(QTimerEvent* arg__1)
430430
{
431431
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
432-
static PyObject* name = PyString_FromString("timerEvent");
432+
static PyObject* name = PyUnicode_FromString("timerEvent");
433433
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
434434
if (obj) {
435435
static const char* argumentList[] ={"" , "QTimerEvent*"};
@@ -448,7 +448,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
448448
void PythonQtShell_QVariantAnimation::updateCurrentTime(int arg__1)
449449
{
450450
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
451-
static PyObject* name = PyString_FromString("updateCurrentTime");
451+
static PyObject* name = PyUnicode_FromString("updateCurrentTime");
452452
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
453453
if (obj) {
454454
static const char* argumentList[] ={"" , "int"};
@@ -467,7 +467,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
467467
void PythonQtShell_QVariantAnimation::updateCurrentValue(const QVariant& value0)
468468
{
469469
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
470-
static PyObject* name = PyString_FromString("updateCurrentValue");
470+
static PyObject* name = PyUnicode_FromString("updateCurrentValue");
471471
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
472472
if (obj) {
473473
static const char* argumentList[] ={"" , "const QVariant&"};
@@ -486,7 +486,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
486486
void PythonQtShell_QVariantAnimation::updateDirection(QAbstractAnimation::Direction direction0)
487487
{
488488
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
489-
static PyObject* name = PyString_FromString("updateDirection");
489+
static PyObject* name = PyUnicode_FromString("updateDirection");
490490
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
491491
if (obj) {
492492
static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"};
@@ -505,7 +505,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
505505
void PythonQtShell_QVariantAnimation::updateState(QAbstractAnimation::State newState0, QAbstractAnimation::State oldState1)
506506
{
507507
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
508-
static PyObject* name = PyString_FromString("updateState");
508+
static PyObject* name = PyUnicode_FromString("updateState");
509509
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
510510
if (obj) {
511511
static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"};
@@ -650,7 +650,7 @@ PythonQtShell_QXmlStreamEntityResolver::~PythonQtShell_QXmlStreamEntityResolver(
650650
QString PythonQtShell_QXmlStreamEntityResolver::resolveEntity(const QString& publicId0, const QString& systemId1)
651651
{
652652
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
653-
static PyObject* name = PyString_FromString("resolveEntity");
653+
static PyObject* name = PyUnicode_FromString("resolveEntity");
654654
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
655655
if (obj) {
656656
static const char* argumentList[] ={"QString" , "const QString&" , "const QString&"};
@@ -680,7 +680,7 @@ if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
680680
QString PythonQtShell_QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString& name0)
681681
{
682682
if (_wrapper && (Py_REFCNT((PyObject*)_wrapper) > 0)) {
683-
static PyObject* name = PyString_FromString("resolveUndeclaredEntity");
683+
static PyObject* name = PyUnicode_FromString("resolveUndeclaredEntity");
684684
PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name);
685685
if (obj) {
686686
static const char* argumentList[] ={"QString" , "const QString&"};

0 commit comments

Comments
 (0)