mswriter: fix wrong ListElement template. This resolves issue #78

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/79/head
Michele Calgaro 2 months ago
parent 4c1465bdd8
commit e1202e46cb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -73,22 +73,22 @@ namespace MSWrite
{
return m_data;
}
bool operator== (const dtype &rhs)
bool operator== (const ListElement &rhs)
{
return this->data == rhs.data;
return this->m_data == rhs.m_data;
}
void setData (const dtype &data)
{
m_data = data;
}
dtype &operator= (const dtype &rhs)
dtype &operator= (const ListElement &rhs)
{
if (this == &rhs)
return *this;
this->data = rhs.data;
return this->data;
this->m_data = rhs.m_data;
return this->m_data;
}
friend class List <dtype>;

Loading…
Cancel
Save