diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-25 14:53:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-26 09:46:13 +0100 |
commit | 2132da5066143d7828984bc1aa42d10223bc5824 (patch) | |
tree | 1741ac4d1e3a7bc293777629d14c21877b3631b0 /package/inc | |
parent | a916adba23e81c8c661369d2c06fbe9c6714d9c2 (diff) |
loplugin:stringliteraldefine in package
Change-Id: I91ce2f65513ea9ae74841c6b0286c01d4e6dd82f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125812
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/inc')
-rw-r--r-- | package/inc/PackageConstants.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package/inc/PackageConstants.hxx b/package/inc/PackageConstants.hxx index 141da220ec69..82aa94fc180c 100644 --- a/package/inc/PackageConstants.hxx +++ b/package/inc/PackageConstants.hxx @@ -48,14 +48,14 @@ const sal_Int32 n_ConstDigestDecrypt = 1056; // 1024 + 32 #define PKG_SIZE_ENCR_MNFST 12 // the properties related constants -#define ENCRYPTION_KEY_PROPERTY "EncryptionKey" -#define STORAGE_ENCRYPTION_KEYS_PROPERTY "StorageEncryptionKeys" -#define ENCRYPTION_ALGORITHMS_PROPERTY "EncryptionAlgorithms" -#define ENCRYPTION_GPG_PROPERTIES "EncryptionGpGProperties" +inline constexpr OUStringLiteral ENCRYPTION_KEY_PROPERTY = u"EncryptionKey"; +inline constexpr OUStringLiteral STORAGE_ENCRYPTION_KEYS_PROPERTY = u"StorageEncryptionKeys"; +inline constexpr OUStringLiteral ENCRYPTION_ALGORITHMS_PROPERTY = u"EncryptionAlgorithms"; +inline constexpr OUStringLiteral ENCRYPTION_GPG_PROPERTIES = u"EncryptionGpGProperties"; #define HAS_ENCRYPTED_ENTRIES_PROPERTY "HasEncryptedEntries" #define HAS_NONENCRYPTED_ENTRIES_PROPERTY "HasNonEncryptedEntries" #define IS_INCONSISTENT_PROPERTY "IsInconsistent" -#define MEDIATYPE_FALLBACK_USED_PROPERTY "MediaTypeFallbackUsed" +inline constexpr OUStringLiteral MEDIATYPE_FALLBACK_USED_PROPERTY = u"MediaTypeFallbackUsed"; #endif |