From 570d00b000bd558592af317746fa3639fb022fa4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 25 Jul 2021 17:07:10 +0200 Subject: Fix crash when storing secrets Nested QEventLoops are scary. Ultimately we shouldn't use them, but I have no better solution right now. fixes #656 --- src/Cache_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Cache_p.h') diff --git a/src/Cache_p.h b/src/Cache_p.h index c9d42202..89c88925 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -285,9 +285,9 @@ public: void saveOlmAccount(const std::string &pickled); std::string restoreOlmAccount(); - void storeSecret(const std::string &name, const std::string &secret); - void deleteSecret(const std::string &name); - std::optional secret(const std::string &name); + void storeSecret(const std::string name, const std::string secret); + void deleteSecret(const std::string name); + std::optional secret(const std::string name); template static constexpr bool isStateEvent(const mtx::events::StateEvent &) -- cgit 1.5.1