diff options
| author | Linus Jahn <lnj@kaidan.im> | 2023-02-18 14:06:38 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2023-02-18 14:07:47 +0100 |
| commit | 2631115e763b0972acf849ee76503a3ea88b9b7f (patch) | |
| tree | bd2909ca9f7f4d5fcc2df2d4124388a828aad648 /src/client | |
| parent | 07c26b5747661e66c0ae56d41d616f5ec94d6472 (diff) | |
FileSharingManager: Format code in a clang-format compatible way
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/QXmppFileSharingManager.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/QXmppFileSharingManager.cpp b/src/client/QXmppFileSharingManager.cpp index c8964c63..7924f9eb 100644 --- a/src/client/QXmppFileSharingManager.cpp +++ b/src/client/QXmppFileSharingManager.cpp @@ -36,15 +36,11 @@ using MetadataGeneratorResult = QXmppFileSharingManager::MetadataGeneratorResult // The manager generates a hash with each hash algorithm static std::vector<HashAlgorithm> hashAlgorithms() { - return - { - HashAlgorithm::Sha256, #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - HashAlgorithm::Blake2b_256, + return { HashAlgorithm::Sha256, HashAlgorithm::Blake2b_256 }; #else - HashAlgorithm::Sha3_256, + return { HashAlgorithm::Sha256, HashAlgorithm::Sha3_256 }; #endif - }; } template<typename T, typename Converter> |
