diff options
| author | Jonah BrĂ¼chert <jbb.prv@gmx.de> | 2020-03-22 22:24:26 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-03-28 18:07:47 +0100 |
| commit | 1ac7b9d2a25d50b7680bd75ff68f29055b196d80 (patch) | |
| tree | 9adf6bbeefd37ed2fe1dbd23592d321183c6e87b /src/base/QXmppBitsOfBinaryContentId.cpp | |
| parent | 88451aa1597afd0a1a1c3b3fb59d5a95d3011736 (diff) | |
| download | qxmpp-1ac7b9d2a25d50b7680bd75ff68f29055b196d80.tar.gz | |
base: Convert to QStringLiteral
Two new macros were added:
* QBL (short alias for QByteArrayLiteral)
* QSL (short alias for QStringLiteral)
Diffstat (limited to 'src/base/QXmppBitsOfBinaryContentId.cpp')
| -rw-r--r-- | src/base/QXmppBitsOfBinaryContentId.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/base/QXmppBitsOfBinaryContentId.cpp b/src/base/QXmppBitsOfBinaryContentId.cpp index 630e59a7..f55f3439 100644 --- a/src/base/QXmppBitsOfBinaryContentId.cpp +++ b/src/base/QXmppBitsOfBinaryContentId.cpp @@ -27,25 +27,25 @@ #include <QSharedData> #include <QString> -#define CONTENTID_URL QStringLiteral("cid:") +#define CONTENTID_URL QSL("cid:") #define CONTENTID_URL_LENGTH 4 -#define CONTENTID_POSTFIX QStringLiteral("@bob.xmpp.org") +#define CONTENTID_POSTFIX QSL("@bob.xmpp.org") #define CONTENTID_POSTFIX_LENGTH 13 -#define CONTENTID_HASH_SEPARATOR QStringLiteral("+") +#define CONTENTID_HASH_SEPARATOR QSL("+") static const QMap<QCryptographicHash::Algorithm, QString> HASH_ALGORITHMS = { - { QCryptographicHash::Sha1, QStringLiteral("sha1") }, + { QCryptographicHash::Sha1, QSL("sha1") }, #ifndef QT_CRYPTOGRAPHICHASH_ONLY_SHA1 - { QCryptographicHash::Md4, QStringLiteral("md4") }, - { QCryptographicHash::Md5, QStringLiteral("md5") }, - { QCryptographicHash::Sha224, QStringLiteral("sha224") }, - { QCryptographicHash::Sha256, QStringLiteral("sha256") }, - { QCryptographicHash::Sha384, QStringLiteral("sha384") }, - { QCryptographicHash::Sha512, QStringLiteral("sha512") }, - { QCryptographicHash::Sha3_224, QStringLiteral("sha3-224") }, - { QCryptographicHash::Sha3_256, QStringLiteral("sha3-256") }, - { QCryptographicHash::Sha3_384, QStringLiteral("sha3-384") }, - { QCryptographicHash::Sha3_512, QStringLiteral("sha3-512") }, + { QCryptographicHash::Md4, QSL("md4") }, + { QCryptographicHash::Md5, QSL("md5") }, + { QCryptographicHash::Sha224, QSL("sha224") }, + { QCryptographicHash::Sha256, QSL("sha256") }, + { QCryptographicHash::Sha384, QSL("sha384") }, + { QCryptographicHash::Sha512, QSL("sha512") }, + { QCryptographicHash::Sha3_224, QSL("sha3-224") }, + { QCryptographicHash::Sha3_256, QSL("sha3-256") }, + { QCryptographicHash::Sha3_384, QSL("sha3-384") }, + { QCryptographicHash::Sha3_512, QSL("sha3-512") }, #endif }; |
