Remove unused variables and warnings when using gcc 4.6.
This commit is contained in:
parent
fab79738ac
commit
0cb14ebf35
1 changed files with 0 additions and 2 deletions
|
|
@ -225,14 +225,12 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args)
|
||||||
}
|
}
|
||||||
|
|
||||||
Shiboken::GilState gil;
|
Shiboken::GilState gil;
|
||||||
int numArgs;
|
|
||||||
PyObject* retval = 0;
|
PyObject* retval = 0;
|
||||||
PyObject* callback = data->callback();
|
PyObject* callback = data->callback();
|
||||||
if (m_shortCircuitSlots.contains(id)) {
|
if (m_shortCircuitSlots.contains(id)) {
|
||||||
retval = PyObject_CallObject(callback, reinterpret_cast<PyObject*>(args[1]));
|
retval = PyObject_CallObject(callback, reinterpret_cast<PyObject*>(args[1]));
|
||||||
} else {
|
} else {
|
||||||
QList<QByteArray> paramTypes = slot.parameterTypes();
|
QList<QByteArray> paramTypes = slot.parameterTypes();
|
||||||
numArgs = paramTypes.count();
|
|
||||||
Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count()));
|
Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count()));
|
||||||
for (int i = 0, max = paramTypes.count(); i < max; ++i) {
|
for (int i = 0, max = paramTypes.count(); i < max; ++i) {
|
||||||
PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]);
|
PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue