Fix StringField copy.

This commit is contained in:
Francois Ferrand 2013-05-01 11:12:53 +02:00
parent d8857bf42d
commit 8f33c5235b

View File

@ -33,7 +33,7 @@ static const char * const STR_SET_LOGIN = "set-login";
static const char * const STR_ASSOCIATE = "associate"; static const char * const STR_ASSOCIATE = "associate";
static const char * const STR_TEST_ASSOCIATE = "test-associate"; static const char * const STR_TEST_ASSOCIATE = "test-associate";
static const char * const STR_GENERATE_PASSWORD = "generate-password"; static const char * const STR_GENERATE_PASSWORD = "generate-password";
static const char * const STR_VERSION = "1.6.0.0"; static const char * const STR_VERSION = "1.7.0.0";
}/*namespace KeepassHttpProtocol*/ }/*namespace KeepassHttpProtocol*/
@ -497,13 +497,13 @@ StringField::StringField(const QString &key, const QString &value):
{} {}
StringField::StringField(const StringField &other): StringField::StringField(const StringField &other):
m_key(other.m_key), m_value(other.m_value) QObject(NULL), m_key(other.m_key), m_value(other.m_value)
{} {}
StringField &StringField::operator =(const StringField &other) StringField &StringField::operator =(const StringField &other)
{ {
m_key = m_key; m_key = other.m_key;
m_value = m_value; m_value = other.m_value;
return *this; return *this;
} }