diff --git a/src/PythonQtConversion.h b/src/PythonQtConversion.h index a5b6b5d..1b17f00 100644 --- a/src/PythonQtConversion.h +++ b/src/PythonQtConversion.h @@ -124,9 +124,6 @@ public: static PyObject* QVariantMapToPyObject(const QVariantMap& m); static PyObject* QVariantListToPyObject(const QVariantList& l); - - //! get human readable string from qvariant - static QString qVariantToString(const QVariant& v); //! get human readable string from CPP object (when the metatype is known) static QString CPPObjectToString(int type, const void* data); diff --git a/src/PythonQtInstanceWrapper.cpp b/src/PythonQtInstanceWrapper.cpp index 4b859f0..f4b97cf 100644 --- a/src/PythonQtInstanceWrapper.cpp +++ b/src/PythonQtInstanceWrapper.cpp @@ -503,7 +503,7 @@ static int PythonQtInstanceWrapper_compare(PyObject * obj1, PyObject * obj2) if (w1->_obj && w2->_obj) { void* args[2]; args[0] = &result; - args[2] = obj2; // this is a reference, so it needs the direct pointer + args[1] = obj2; // this is a reference, so it needs the direct pointer w1->_obj->qt_metacall(QMetaObject::InvokeMetaMethod, info._slot->slotIndex(), args); } }