aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-18 21:29:27 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-18 21:29:27 +0200
commit5a63f8a18645d612decdcc853335df0682c41d03 (patch)
tree7a56cdede53ff63532c51d65e75ea4905b8873fd /lib/e2ee
parent6b355d1aa87072143e09ea5269e8cf465318a64f (diff)
downloadlibquotient-5a63f8a18645d612decdcc853335df0682c41d03.tar.gz
libquotient-5a63f8a18645d612decdcc853335df0682c41d03.zip
Drop make_array(); use std::to_array() where needed
make_array() has been introduced to cover for shortcomings on macOS and Windows. These shortcomings are no more there, so we can just use the standardrlibrary.
Diffstat (limited to 'lib/e2ee')
-rw-r--r--lib/e2ee/e2ee.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/e2ee/e2ee.h b/lib/e2ee/e2ee.h
index f97eb27a..1efd0f16 100644
--- a/lib/e2ee/e2ee.h
+++ b/lib/e2ee/e2ee.h
@@ -37,8 +37,9 @@ constexpr auto MegolmV1AesSha2AlgoKey = "m.megolm.v1.aes-sha2"_ls;
inline bool isSupportedAlgorithm(const QString& algorithm)
{
- static constexpr auto SupportedAlgorithms =
- make_array(OlmV1Curve25519AesSha2AlgoKey, MegolmV1AesSha2AlgoKey);
+ static constexpr std::array SupportedAlgorithms {
+ OlmV1Curve25519AesSha2AlgoKey, MegolmV1AesSha2AlgoKey
+ };
return std::find(SupportedAlgorithms.cbegin(), SupportedAlgorithms.cend(),
algorithm)
!= SupportedAlgorithms.cend();