diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-18 21:29:27 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-18 21:29:27 +0200 |
commit | 5a63f8a18645d612decdcc853335df0682c41d03 (patch) | |
tree | 7a56cdede53ff63532c51d65e75ea4905b8873fd /lib/events/encryptionevent.cpp | |
parent | 6b355d1aa87072143e09ea5269e8cf465318a64f (diff) | |
download | libquotient-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/events/encryptionevent.cpp')
-rw-r--r-- | lib/events/encryptionevent.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/events/encryptionevent.cpp b/lib/events/encryptionevent.cpp index 6e994cd4..eb15f38e 100644 --- a/lib/events/encryptionevent.cpp +++ b/lib/events/encryptionevent.cpp @@ -9,9 +9,7 @@ #include <array> namespace Quotient { -static const std::array<QString, 1> encryptionStrings = { - { MegolmV1AesSha2AlgoKey } -}; +static constexpr std::array encryptionStrings { MegolmV1AesSha2AlgoKey }; template <> struct JsonConverter<EncryptionType> { |