summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-10-03 23:16:41 +0900
committerMichele Calgaro <[email protected]>2024-10-04 09:39:53 +0900
commit9e417736a86f78e272f502df3cc6fe4883e57166 (patch)
treeab4df370f9962afd7c5017410520342245773c35
parent83ac257366a56bd566fa38ab52fe254d23f88bcb (diff)
downloadkoffice-9e417736a86f78e272f502df3cc6fe4883e57166.tar.gz
koffice-9e417736a86f78e272f502df3cc6fe4883e57166.zip
mswriter: fix wrong ListElement template. This resolves issue #78
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit e1202e46cb4a06d484931f498a9d0cf4d1863056)
-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 051d1606..ae30483d 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>;