Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-12-16 19:36:33 +0300
committerJonathan White <support@dmapps.us>2018-01-13 22:23:27 +0300
commit0d6ca0945bf1425decf5516420fe3973743e47ab (patch)
tree82c8140d96017fed0e256ba5a750ae630821314b /src/format/KeePass2.cpp
parentd1a19a1009fe237406d35431c75b01362d5a7aee (diff)
Reformat code, fix minor style issues, make kdf() getter const
Diffstat (limited to 'src/format/KeePass2.cpp')
-rw-r--r--src/format/KeePass2.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/format/KeePass2.cpp b/src/format/KeePass2.cpp
index 8cf3df555..e79dff513 100644
--- a/src/format/KeePass2.cpp
+++ b/src/format/KeePass2.cpp
@@ -48,24 +48,24 @@ Kdf* KeePass2::uuidToKdf(const Uuid& uuid) {
Uuid KeePass2::kdfToUuid(const Kdf& kdf)
{
switch (kdf.type()) {
- case Kdf::Type::AES:
- return KDF_AES;
- default:
- return Uuid();
+ case Kdf::Type::AES:
+ return KDF_AES;
+ default:
+ return Uuid();
}
}
KeePass2::ProtectedStreamAlgo KeePass2::idToProtectedStreamAlgo(quint32 id)
{
switch (id) {
- case static_cast<quint32>(KeePass2::ArcFourVariant):
- return KeePass2::ArcFourVariant;
- case static_cast<quint32>(KeePass2::Salsa20):
- return KeePass2::Salsa20;
- case static_cast<quint32>(KeePass2::ChaCha20):
- return KeePass2::ChaCha20;
- default:
- return KeePass2::InvalidProtectedStreamAlgo;
+ case static_cast<quint32>(KeePass2::ArcFourVariant):
+ return KeePass2::ArcFourVariant;
+ case static_cast<quint32>(KeePass2::Salsa20):
+ return KeePass2::Salsa20;
+ case static_cast<quint32>(KeePass2::ChaCha20):
+ return KeePass2::ChaCha20;
+ default:
+ return KeePass2::InvalidProtectedStreamAlgo;
}
}