Skip to content

Commit 87df4f2

Browse files
committed
chore: Consistently use QMetaType::QByteArray
1 parent 69f59ad commit 87df4f2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/PythonQtInstanceWrapper.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,7 @@ static PyObject * PythonQtInstanceWrapper_str(PyObject * obj)
770770
PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)obj;
771771

772772
// QByteArray should be directly returned as a str
773-
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
774773
if (wrapper->classInfo()->metaTypeId() == QMetaType::QByteArray) {
775-
#else
776-
if (wrapper->classInfo()->metaTypeId()==QVariant::ByteArray) {
777-
#endif
778774
QByteArray* b = (QByteArray*) wrapper->_wrappedPtr;
779775
#ifdef PY3K
780776
// Note: In Python 2, this was used to access the data() of a byte array.

0 commit comments

Comments
 (0)