Skip to content

Commit fdea80d

Browse files
committed
Fix compilation with PythonQt_Debug flag
1 parent bee026b commit fdea80d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/PythonQtClassInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ bool PythonQtClassInfo::lookForEnumAndCache(const QMetaObject* meta, const char*
287287
PythonQtMemberInfo newInfo(enumValuePtr);
288288
_cachedMembers.insert(memberName, newInfo);
289289
#ifdef PYTHONQT_DEBUG
290-
std::cout << "caching enum " << memberName << " on " << meta->className()->constData() << std::endl;
290+
std::cout << "caching enum " << memberName << " on " << meta->className() << std::endl;
291291
#endif
292292
found = true;
293293
break;
@@ -1063,4 +1063,4 @@ PythonQtMemberInfo::PythonQtMemberInfo( const QMetaProperty& prop )
10631063
_property = prop;
10641064
_enumValue = NULL;
10651065
_pythonType = NULL;
1066-
}
1066+
}

src/PythonQtMethodInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ QHash<QByteArray, QByteArray> PythonQtMethodInfo::_parameterNameAliases;
5050
PythonQtMethodInfo::PythonQtMethodInfo(const QMetaMethod& meta, PythonQtClassInfo* classInfo)
5151
{
5252
#ifdef PYTHONQT_DEBUG
53-
QByteArray sig = PythonQtUtils::signature(meta));
53+
QByteArray sig = PythonQtUtils::signature(meta);
5454
sig = sig.mid(sig.indexOf('('));
5555
QByteArray fullSig = QByteArray(meta.typeName()) + " " + sig;
5656
std::cout << "caching " << fullSig.data() << std::endl;
@@ -584,4 +584,4 @@ QByteArray PythonQtSlotInfo::getImplementingClassName() const
584584
} else {
585585
return _meta.enclosingMetaObject()->className();
586586
}
587-
}
587+
}

src/PythonQtSlot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ PyObject *PythonQtSlotFunction_CallImpl(PythonQtClassInfo* classInfo, QObject* o
333333
}
334334

335335
#ifdef PYTHONQT_DEBUG
336-
std::cout << "called " << info->metaMethod()->typeName() << " " << info->signature() << std::endl;
336+
std::cout << "called " << info->metaMethod()->typeName() << " " << info->signature().constData() << std::endl;
337337
#endif
338338

339339
PyObject* r = NULL;

0 commit comments

Comments
 (0)