Add back missing initializers to KeeAgentSettings

This commit is contained in:
Toni Spets 2020-03-24 18:05:30 +02:00 committed by Jonathan White
parent 8e4b0fdfe8
commit 464e49d329
2 changed files with 8 additions and 16 deletions

View File

@ -19,12 +19,6 @@
#include "KeeAgentSettings.h" #include "KeeAgentSettings.h"
#include "core/Tools.h" #include "core/Tools.h"
KeeAgentSettings::KeeAgentSettings()
: m_lifetimeConstraintDuration(600)
, m_selectedType(QString("file"))
{
}
bool KeeAgentSettings::operator==(const KeeAgentSettings& other) const bool KeeAgentSettings::operator==(const KeeAgentSettings& other) const
{ {
// clang-format off // clang-format off

View File

@ -27,8 +27,6 @@
class KeeAgentSettings class KeeAgentSettings
{ {
public: public:
KeeAgentSettings();
bool operator==(const KeeAgentSettings& other) const; bool operator==(const KeeAgentSettings& other) const;
bool operator!=(const KeeAgentSettings& other) const; bool operator!=(const KeeAgentSettings& other) const;
bool isDefault() const; bool isDefault() const;
@ -72,17 +70,17 @@ private:
bool readBool(QXmlStreamReader& reader); bool readBool(QXmlStreamReader& reader);
int readInt(QXmlStreamReader& reader); int readInt(QXmlStreamReader& reader);
bool m_allowUseOfSshKey; bool m_allowUseOfSshKey = false;
bool m_addAtDatabaseOpen; bool m_addAtDatabaseOpen = false;
bool m_removeAtDatabaseClose; bool m_removeAtDatabaseClose = false;
bool m_useConfirmConstraintWhenAdding; bool m_useConfirmConstraintWhenAdding = false;
bool m_useLifetimeConstraintWhenAdding; bool m_useLifetimeConstraintWhenAdding = false;
int m_lifetimeConstraintDuration; int m_lifetimeConstraintDuration = 600;
// location // location
QString m_selectedType; QString m_selectedType = QString("file");
QString m_attachmentName; QString m_attachmentName;
bool m_saveAttachmentToTempFile; bool m_saveAttachmentToTempFile = false;
QString m_fileName; QString m_fileName;
QString m_error; QString m_error;
}; };