From 20f343b3dc5b1fa3c9eb7c90ca9e51a52338155d Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 9 Apr 2012 20:56:14 +0300 Subject: ProtocolParameter: Fix typo in the constructor arguments - flags should be of the respective QFlags type, not the enum type --- TelepathyQt/protocol-parameter.cpp | 6 +++--- TelepathyQt/protocol-parameter.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/TelepathyQt/protocol-parameter.cpp b/TelepathyQt/protocol-parameter.cpp index bc30f68e..e0960d14 100644 --- a/TelepathyQt/protocol-parameter.cpp +++ b/TelepathyQt/protocol-parameter.cpp @@ -39,7 +39,7 @@ struct TP_QT_NO_EXPORT ProtocolParameter::Private : public QSharedData } Private(const QString &name, const QString &dbusSignature, - ConnMgrParamFlag flags, const QVariant &defaultValue) + ConnMgrParamFlags flags, const QVariant &defaultValue) : type(variantTypeFromDBusSignature(dbusSignature)) { spec.name = name; @@ -95,7 +95,7 @@ ProtocolParameter::ProtocolParameter(const ParamSpec &spec) ProtocolParameter::ProtocolParameter(const QString &name, const QDBusSignature &dbusSignature, - ConnMgrParamFlag flags, + ConnMgrParamFlags flags, QVariant defaultValue) : mPriv(new Private(name, dbusSignature.signature(), flags, defaultValue)) { @@ -103,7 +103,7 @@ ProtocolParameter::ProtocolParameter(const QString &name, ProtocolParameter::ProtocolParameter(const QString &name, const QString &dbusSignature, - ConnMgrParamFlag flags, + ConnMgrParamFlags flags, QVariant defaultValue) : mPriv(new Private(name, dbusSignature, flags, defaultValue)) { diff --git a/TelepathyQt/protocol-parameter.h b/TelepathyQt/protocol-parameter.h index cdd349a5..0762bb39 100644 --- a/TelepathyQt/protocol-parameter.h +++ b/TelepathyQt/protocol-parameter.h @@ -46,11 +46,11 @@ public: ProtocolParameter(const ParamSpec &spec); ProtocolParameter(const QString &name, const QDBusSignature &dbusSignature, - ConnMgrParamFlag flags, + ConnMgrParamFlags flags, QVariant defaultValue = QVariant()); ProtocolParameter(const QString &name, const QString &dbusSignature, - ConnMgrParamFlag flags, + ConnMgrParamFlags flags, QVariant defaultValue = QVariant()); ProtocolParameter(const ProtocolParameter &other); ~ProtocolParameter(); -- cgit v1.2.3