refactoring: improved the performance of secure_settings
This commit is contained in:
parent
956dd6e37a
commit
4869429eb6
2 changed files with 8 additions and 6 deletions
|
@ -8,10 +8,6 @@
|
|||
|
||||
#include "keychain.h"
|
||||
|
||||
constexpr const char *settingsKeyTag = "settingsKeyTag";
|
||||
constexpr const char *settingsIvTag = "settingsIvTag";
|
||||
constexpr const char *keyChainName = "AmneziaVPN-Keychain";
|
||||
|
||||
class SecureQSettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -44,7 +40,7 @@ public:
|
|||
private:
|
||||
QSettings m_settings;
|
||||
|
||||
mutable QMap<QString, QVariant> m_cache;
|
||||
mutable QHash<QString, QVariant> m_cache;
|
||||
|
||||
QStringList encryptedKeys; // encode only key listed here
|
||||
// only this fields need for backup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue