do not copy the parameters types list in qDBusParametersForMethod() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-22 12:01:42 +02:00
parent 61e052461c
commit 9a26963695

View file

@ -92,13 +92,11 @@ bool qDBusInterfaceInObject(QObject *obj, const QString &interface_name)
// sig must be the normalised signature for the method
int qDBusParametersForMethod(const QMetaMethod &mm, QList<int>& metaTypes)
{
QList<QByteArray> parameterTypes = mm.parameterTypes();
metaTypes.clear();
metaTypes.append(0); // return type
int inputCount = 0;
bool seenMessage = false;
foreach (const QByteArray &type, parameterTypes) {
foreach (const QByteArray &type, mm.parameterTypes()) {
if (type.endsWith('*')) {
//qWarning("Could not parse the method '%s'", mm.signature());
// pointer?