diff options
Diffstat (limited to 'sip/tqt/tqobject.sip')
-rw-r--r-- | sip/tqt/tqobject.sip | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/sip/tqt/tqobject.sip b/sip/tqt/tqobject.sip index ef2ddc5..7a7c86b 100644 --- a/sip/tqt/tqobject.sip +++ b/sip/tqt/tqobject.sip @@ -487,7 +487,7 @@ public: while (o) { - bool remove = TRUE; + bool remove = true; PyObject *pyo = sipConvertFromInstance(o, sipClass_TQObject, 0); if (pyo) @@ -497,7 +497,7 @@ public: for (int i = 0; i < PyTuple_GET_SIZE(mro); ++i) if (strcmp(((PyTypeObject *)PyTuple_GET_ITEM(mro,i)) -> tp_name,a0) == 0) { - remove = FALSE; + remove = false; break; } @@ -1224,7 +1224,7 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *tqargs) if (id - staticMetaObject()->slotOffset() != 0) return TQObject::tqt_invoke(id, tqargs); - bool ok = TRUE; + bool ok = true; const pytqt3Signature *psig = conn.sc_signature; TQVariant *tqv; @@ -1246,7 +1246,7 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *tqargs) PyObject *argtup = PyTuple_New(psig->sg_nrargs); if (!argtup) - ok = FALSE; + ok = false; else { for (int a = 0; a < psig->sg_nrargs; ++a) @@ -1359,7 +1359,7 @@ bool UniversalSlot::tqt_invoke(int id, TQUObject *tqargs) if (res) Py_DECREF(res); else - ok = FALSE; + ok = false; } Py_DECREF(argtup); @@ -1458,7 +1458,8 @@ static pytqt3Signature *parseSignature(const char *sig) // non-significant spaces. Each argument is left as a '\0' terminated // string. char *dp = psig->sg_signature; - int depth = 0, nrcommas = 0, argstart = TRUE; + int depth = 0, nrcommas = 0; + bool argstart = true; for (;;) { @@ -1480,7 +1481,7 @@ static pytqt3Signature *parseSignature(const char *sig) { *dp++ = '\0'; ++nrcommas; - argstart = TRUE; + argstart = true; } else { @@ -1502,7 +1503,7 @@ static pytqt3Signature *parseSignature(const char *sig) else { *dp++ = ch; - argstart = FALSE; + argstart = false; } } @@ -1546,7 +1547,8 @@ static pytqt3Signature *parseSignature(const char *sig) static void parseType(const char *type, pytqt3SigArg *arg) { size_t btlen = 0; - int unsup, isref = FALSE, indir = 0; + int indir = 0; + bool unsup, isref = false; const char *ep; pytqt3SigArgType sat = unknown_sat; @@ -1558,7 +1560,7 @@ static void parseType(const char *type, pytqt3SigArg *arg) // is a reference. for (ep = type; *ep; ++ep) if (*ep == '&') - isref = TRUE; + isref = true; else if (*ep == '*') ++indir; else @@ -1662,12 +1664,12 @@ static void parseType(const char *type, pytqt3SigArg *arg) if (indir == 0) { sat = tqvariant_sat; - unsup = FALSE; + unsup = false; } else if (indir == 1) { sat = tqvariantp_sat; - unsup = FALSE; + unsup = false; } } break; @@ -1701,7 +1703,7 @@ static void parseType(const char *type, pytqt3SigArg *arg) else if (strcmp(type, "PyTQt_PyObject") == 0 && indir == 0) { sat = pyobject_sat; - unsup = FALSE; + unsup = false; } break; |