From e1202e46cb4a06d484931f498a9d0cf4d1863056 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 3 Oct 2024 23:16:41 +0900 Subject: [PATCH] mswriter: fix wrong ListElement template. This resolves issue #78 Signed-off-by: Michele Calgaro --- filters/kword/mswrite/list.h | 10 +++++----- 1 file 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 ;