aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmaccount.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-12-25 16:00:09 +0100
committerTobias Fella <fella@posteo.de>2021-12-25 16:00:25 +0100
commitf4d6a08811b0bf3a10a23ff703fc5a8ff1fcc624 (patch)
tree03b6d33848a9eaf156cafa4db0156a295628606c /lib/e2ee/qolmaccount.cpp
parentf01427c307c825feaa6c45888c259903605c9796 (diff)
downloadlibquotient-f4d6a08811b0bf3a10a23ff703fc5a8ff1fcc624.tar.gz
libquotient-f4d6a08811b0bf3a10a23ff703fc5a8ff1fcc624.zip
Apply suggestions
Diffstat (limited to 'lib/e2ee/qolmaccount.cpp')
-rw-r--r--lib/e2ee/qolmaccount.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/e2ee/qolmaccount.cpp b/lib/e2ee/qolmaccount.cpp
index ffb004cc..a984f884 100644
--- a/lib/e2ee/qolmaccount.cpp
+++ b/lib/e2ee/qolmaccount.cpp
@@ -34,9 +34,7 @@ bool operator==(const IdentityKeys& lhs, const IdentityKeys& rhs)
// Convert olm error to enum
QOlmError lastError(OlmAccount *account) {
- const auto error_raw = olm_account_last_error(account);
-
- return fromString(error_raw);
+ return fromString(olm_account_last_error(account));
}
QByteArray getRandom(size_t bufferSize)