Skip to content

Commit

Permalink
Add back missing initializers to KeeAgentSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
hifi authored and lerignoux committed May 28, 2020
1 parent 3b06b3e commit f5fb0a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
6 changes: 0 additions & 6 deletions src/sshagent/KeeAgentSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 8 additions & 10 deletions src/sshagent/KeeAgentSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
class KeeAgentSettings
{
public:
KeeAgentSettings();

bool operator==(const KeeAgentSettings& other) const;
bool operator!=(const KeeAgentSettings& other) const;
bool isDefault() const;
Expand Down Expand Up @@ -72,17 +70,17 @@ class KeeAgentSettings
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;
};
Expand Down

0 comments on commit f5fb0a0

Please sign in to comment.