summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-03 23:16:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-03 23:16:51 +0900
commite1202e46cb4a06d484931f498a9d0cf4d1863056 (patch)
tree52e363df79bb263ae8ed555c0833f94305038936
parent4c1465bdd8f82e76ab31578fe5183df754acf9e1 (diff)
downloadkoffice-e1202e46cb4a06d484931f498a9d0cf4d1863056.tar.gz
koffice-e1202e46cb4a06d484931f498a9d0cf4d1863056.zip
mswriter: fix wrong ListElement template. This resolves issue #78
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--filters/kword/mswrite/list.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/filters/kword/mswrite/list.h b/filters/kword/mswrite/list.h
index 051d16066..ae30483da 100644
--- a/filters/kword/mswrite/list.h
+++ b/filters/kword/mswrite/list.h
@@ -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>;