aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-02-06 11:48:37 +0100
committerLNJ <lnj@kaidan.im>2020-02-06 12:17:01 +0100
commitdee612210008007a9c011b96081605f6e692287d (patch)
treefcce336ee39430ef6441b4b61909ef2ad131c524 /src/client
parenteb902b4e241b237b3f0684346dee00d75bbcdebb (diff)
downloadqxmpp-dee612210008007a9c011b96081605f6e692287d.tar.gz
QXmppRegistrationManager: Pass stanza error by value
It uses QSharedDataPointer<> internally, so passing by value is recommended.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/QXmppRegistrationManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/QXmppRegistrationManager.h b/src/client/QXmppRegistrationManager.h
index ece72f34..eba49d53 100644
--- a/src/client/QXmppRegistrationManager.h
+++ b/src/client/QXmppRegistrationManager.h
@@ -82,7 +82,7 @@ class QXmppRegistrationManagerPrivate;
/// connect(registrationManager, &QXmppRegistrationManager::passwordChanged, [=](const QString &newPassword) {
/// qDebug() << "Password changed to:" << newPassword;
/// });
-/// connect(registrationManager, &QXmppRegistrationManager::passwordChangeFailed, [=](const QXmppStanza::Error &error) {
+/// connect(registrationManager, &QXmppRegistrationManager::passwordChangeFailed, [=](QXmppStanza::Error error) {
/// qDebug() << "Couldn't change the password:" << error.text();
/// });
///
@@ -303,7 +303,7 @@ signals:
///
/// \param error Error returned from the service.
///
- void passwordChangeFailed(const QXmppStanza::Error &error);
+ void passwordChangeFailed(QXmppStanza::Error error);
///
/// Emitted, when a registration form has been received.