From fa6e1fd7ffe56f2ec547c43048159a56aa9c9300 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 19 Jan 2020 18:43:11 +0100 Subject: QXmppRegisterIq: Do not pass registerType by const-ref --- src/base/QXmppRegisterIq.cpp | 2 +- src/base/QXmppRegisterIq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base') diff --git a/src/base/QXmppRegisterIq.cpp b/src/base/QXmppRegisterIq.cpp index 825d89c9..77d759c8 100644 --- a/src/base/QXmppRegisterIq.cpp +++ b/src/base/QXmppRegisterIq.cpp @@ -183,7 +183,7 @@ QXmppRegisterIq::RegisterType QXmppRegisterIq::registerType() const /// /// \since QXmpp 1.2 -void QXmppRegisterIq::setRegisterType(const QXmppRegisterIq::RegisterType &type) +void QXmppRegisterIq::setRegisterType(QXmppRegisterIq::RegisterType type) { d->registerType = type; } diff --git a/src/base/QXmppRegisterIq.h b/src/base/QXmppRegisterIq.h index 4c041d4d..f952541d 100644 --- a/src/base/QXmppRegisterIq.h +++ b/src/base/QXmppRegisterIq.h @@ -73,7 +73,7 @@ public: void setUsername(const QString &username); RegisterType registerType() const; - void setRegisterType(const RegisterType ®isterType); + void setRegisterType(RegisterType registerType); QXmppBitsOfBinaryDataList bitsOfBinaryData() const; QXmppBitsOfBinaryDataList &bitsOfBinaryData(); -- cgit v1.2.3