Properly initialize various attributes.

This commit is contained in:
Felix Geyer 2011-06-29 16:47:05 +02:00
parent c548c7f4b4
commit 5cb906c235
5 changed files with 26 additions and 0 deletions

View file

@ -22,10 +22,16 @@
#include "Metadata.h"
#include "crypto/Random.h"
#include "format/KeePass2.h"
Database::Database()
{
m_metadata = new Metadata(this);
m_rootGroup = 0;
m_cipher = KeePass2::CIPHER_AES;
m_compressionAlgo = CompressionNone; // TODO change to CompressionGZip?
m_transformRounds = 1000; // TODO random number
}
Group* Database::rootGroup()