aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-24 18:02:09 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit0b2b70ac815f48fd83424c282fcf50ef97b08a7b (patch)
treeb17e29ba3edd759c859e0b519290c338045a78f3 /lib
parent5b072f7d2519df4c60cc6ae4ce728e99a09d8d44 (diff)
downloadlibquotient-0b2b70ac815f48fd83424c282fcf50ef97b08a7b.tar.gz
libquotient-0b2b70ac815f48fd83424c282fcf50ef97b08a7b.zip
Fix documentation typos
Co-authored-by: Tobias Fella <9750016+TobiasFella@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/olm/e2ee.h2
-rw-r--r--lib/olm/qolmaccount.cpp2
-rw-r--r--lib/olm/qolmoutboundsession.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/olm/e2ee.h b/lib/olm/e2ee.h
index 40ab56c7..1dee0e42 100644
--- a/lib/olm/e2ee.h
+++ b/lib/olm/e2ee.h
@@ -54,7 +54,7 @@ struct IdentityKeys
QByteArray ed25519;
};
-//! Struct representing the the one-time keys.
+//! Struct representing the one-time keys.
struct OneTimeKeys
{
QMap<QString, QMap<QString, QString>> keys;
diff --git a/lib/olm/qolmaccount.cpp b/lib/olm/qolmaccount.cpp
index 89d82832..742d7d18 100644
--- a/lib/olm/qolmaccount.cpp
+++ b/lib/olm/qolmaccount.cpp
@@ -30,7 +30,7 @@ bool operator==(const IdentityKeys& lhs, const IdentityKeys& rhs)
return lhs.curve25519 == rhs.curve25519 &&& lhs.ed25519 == rhs.ed25519;
}
-// Conver olm error to enum
+// Convert olm error to enum
OlmError lastError(OlmAccount *account) {
const std::string error_raw = olm_account_last_error(account);
diff --git a/lib/olm/qolmoutboundsession.h b/lib/olm/qolmoutboundsession.h
index 41eb874a..2e1439d3 100644
--- a/lib/olm/qolmoutboundsession.h
+++ b/lib/olm/qolmoutboundsession.h
@@ -21,7 +21,7 @@ public:
//! Serialises an `QOlmOutboundGroupSession` to encrypted Base64.
std::variant<QByteArray, OlmError> pickle(const PicklingMode &mode);
//! Deserialises from encrypted Base64 that was previously obtained by
- //! pickling an `QOlmOutboundGroupSession`.
+ //! pickling a `QOlmOutboundGroupSession`.
static std::variant<QOlmOutboundGroupSession, OlmError> unpickle(QByteArray &pickled, const PicklingMode &mode);
//! Encrypts a plaintext message using the session.
std::variant<QString, OlmError> encrypt(QString &plaintext);