mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Initalize more member variables.
This commit is contained in:
parent
afb285a476
commit
a1bfb1f319
@ -30,8 +30,8 @@ Database::Database()
|
||||
m_rootGroup = 0;
|
||||
|
||||
m_cipher = KeePass2::CIPHER_AES;
|
||||
m_compressionAlgo = CompressionNone; // TODO change to CompressionGZip?
|
||||
m_transformRounds = 1000; // TODO random number
|
||||
m_compressionAlgo = CompressionGZip;
|
||||
m_transformRounds = 50000;
|
||||
}
|
||||
|
||||
Group* Database::rootGroup()
|
||||
|
@ -29,7 +29,9 @@ Entry::Entry()
|
||||
m_group = 0;
|
||||
m_db = 0;
|
||||
|
||||
m_iconNumber = 0; // TODO change?
|
||||
m_iconNumber = 0;
|
||||
m_autoTypeEnabled = true;
|
||||
m_autoTypeObfuscation = 0;
|
||||
|
||||
Q_FOREACH (const QString& key, m_defaultAttibutes) {
|
||||
addAttribute(key, "");
|
||||
|
@ -30,7 +30,10 @@ Group::Group()
|
||||
m_db = 0;
|
||||
m_lastTopVisibleEntry = 0;
|
||||
|
||||
m_iconNumber = 0; // TODO change?
|
||||
m_iconNumber = 48;
|
||||
m_isExpanded = true;
|
||||
m_autoTypeEnabled = Inherit;
|
||||
m_searchingEnabled = Inherit;
|
||||
}
|
||||
|
||||
Group::~Group()
|
||||
|
@ -22,13 +22,17 @@
|
||||
Metadata::Metadata(Database* parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
m_generator = "KeePassX";
|
||||
m_maintenanceHistoryDays = 365;
|
||||
m_recycleBin = 0;
|
||||
m_entryTemplatesGroup = 0;
|
||||
m_lastSelectedGroup = 0;
|
||||
m_lastTopVisibleGroup = 0;
|
||||
|
||||
m_generator = "KeePassX";
|
||||
m_maintenanceHistoryDays = 365;
|
||||
m_recycleBinEnabled = true;
|
||||
m_masterKeyChangeRec = -1;
|
||||
m_masterKeyChangeForce = -1;
|
||||
|
||||
QDateTime now = QDateTime::currentDateTime();
|
||||
m_nameChanged = now;
|
||||
m_descriptionChanged = now;
|
||||
@ -42,8 +46,6 @@ Metadata::Metadata(Database* parent)
|
||||
m_protectPassword = true;
|
||||
m_protectUrl = false;
|
||||
m_protectNotes = false;
|
||||
|
||||
// TODO initalize all members
|
||||
}
|
||||
|
||||
QString Metadata::generator() const
|
||||
|
@ -20,7 +20,7 @@
|
||||
TimeInfo::TimeInfo()
|
||||
{
|
||||
m_expires = false;
|
||||
m_usageCount = 0; // TODO ???
|
||||
m_usageCount = 0;
|
||||
|
||||
QDateTime now = QDateTime::currentDateTime();
|
||||
m_lastModificationTime = now;
|
||||
|
Loading…
Reference in New Issue
Block a user