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 "core/Tools.h"
KeeAgentSettings::KeeAgentSettings()
: m_lifetimeConstraintDuration(600)
, m_selectedType(QString("file"))
{
}
bool KeeAgentSettings::operator==(const KeeAgentSettings& other) const
{
// clang-format off

View File

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