From 5200f18b3a65fa49d2b9a9a3f8abc445e663830f Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Thu, 9 Jun 2022 13:48:23 +0200 Subject: Fix typos in documentation and tests --- src/client/QXmppClientExtension.cpp | 2 +- src/client/QXmppE2eeExtension.cpp | 4 ++-- tests/qxmppclient/tst_qxmppclient.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/QXmppClientExtension.cpp b/src/client/QXmppClientExtension.cpp index f71e9163..7181cfc3 100644 --- a/src/client/QXmppClientExtension.cpp +++ b/src/client/QXmppClientExtension.cpp @@ -73,7 +73,7 @@ bool QXmppClientExtension::handleStanza(const QDomElement &) /// stanzas. /// /// \param stanza The DOM element to be handled. -/// \param e2eeMetadata If the element has been decrypted this contains metdata +/// \param e2eeMetadata If the element has been decrypted this contains metadata /// about the encryption. /// /// \return You should return true if the stanza was handled and no further diff --git a/src/client/QXmppE2eeExtension.cpp b/src/client/QXmppE2eeExtension.cpp index 1a6d5e5c..9e98a566 100644 --- a/src/client/QXmppE2eeExtension.cpp +++ b/src/client/QXmppE2eeExtension.cpp @@ -47,7 +47,7 @@ /// Encrypts a QXmppMessage and returns the serialized XML stanza with encrypted /// contents via QFuture. /// -/// If the message cannot be encrypted for whatever reason you can either +/// If the message cannot be encrypted for whatever reason, you can either /// serialize the message unencrypted and return that or return a SendError with /// an error message. /// @@ -58,7 +58,7 @@ /// Encrypts a QXmppIq and returns the serialized XML stanza with encrypted /// contents via QFuture. /// -/// If the IQ cannot be encrypted for whatever reason you can either serialize +/// If the IQ cannot be encrypted for whatever reason, you can either serialize /// the IQ unencrypted and return that or return a SendError with an error /// message. /// diff --git a/tests/qxmppclient/tst_qxmppclient.cpp b/tests/qxmppclient/tst_qxmppclient.cpp index aef16601..7816cb81 100644 --- a/tests/qxmppclient/tst_qxmppclient.cpp +++ b/tests/qxmppclient/tst_qxmppclient.cpp @@ -29,7 +29,7 @@ private slots: void testIndexOfExtension(); - void testE2eeEncryption(); + void testE2eeExtension(); private: QXmppClient *client; @@ -115,7 +115,7 @@ public: } }; -void tst_QXmppClient::testE2eeEncryption() +void tst_QXmppClient::testE2eeExtension() { QXmppClient client; EncryptionExtension encrypter; -- cgit v1.2.3