aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-02-15 18:03:33 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commite9527012622497b0c418df9442180df58401d394 (patch)
tree2708a5389a06cee74f528a00d406a3cbe09783e7 /lib/crypto
parent38547289d56cf66b4f1384ae789cf5b6cd71763e (diff)
downloadlibquotient-e9527012622497b0c418df9442180df58401d394.tar.gz
libquotient-e9527012622497b0c418df9442180df58401d394.zip
Apply suggestions from code review
Co-authored-by: Nicolas Fella <6377822+nicolasfella@users.noreply.github.com>
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/qolmutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/qolmutils.cpp b/lib/crypto/qolmutils.cpp
index a486ea0f..4479932e 100644
--- a/lib/crypto/qolmutils.cpp
+++ b/lib/crypto/qolmutils.cpp
@@ -12,7 +12,7 @@ using namespace Quotient;
QByteArray Quotient::toKey(const Quotient::PicklingMode &mode)
{
if (std::holds_alternative<Quotient::Unencrypted>(mode)) {
- return "";
+ return {};
}
return std::get<Quotient::Encrypted>(mode).key;
}