aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmaccount.cpp
diff options
context:
space:
mode:
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)